Fixed style errors

This commit is contained in:
mansimarkaur 2017-06-13 02:29:16 +05:30
parent 7cd5d143c3
commit cf5db0e0df

View File

@ -11,14 +11,14 @@ describe Language::Node do
describe "#pack_for_installation" do describe "#pack_for_installation" do
it "raises error with non zero exitstatus" do it "raises error with non zero exitstatus" do
shutup do shutup do
expect{described_class.pack_for_installation}.to raise_error expect { described_class.pack_for_installation }.to raise_error
end end
end end
it "does not raise error with a zero exitstatus" do it "does not raise error with a zero exitstatus" do
shutup do shutup do
allow_any_instance_of(Process::Status).to receive(:exitstatus).and_return(0) allow_any_instance_of(Process::Status).to receive(:exitstatus).and_return(0)
expect{described_class.pack_for_installation}.not_to raise_error expect { described_class.pack_for_installation }.not_to raise_error
end end
end end
end end
@ -53,5 +53,4 @@ describe Language::Node do
expect(resp).to eq(["--verbose"]) expect(resp).to eq(["--verbose"])
end end
end end
end end