spec/teabag/formatters/progress_formatter_spec.rb in teabag-0.3.2 vs spec/teabag/formatters/progress_formatter_spec.rb in teabag-0.3.3
- old
+ new
@@ -61,15 +61,15 @@
end
describe "with failures" do
it "logs the details and raises an exception" do
- subject.failures << Teabag::Result.build_from_json("default", "spec" => "some spec", "message" => "some message", "link" => "?grep=some%20spec")
+ subject.failures << Teabag::Result.build_from_json("default", "spec" => "some spec", "full_description" => "full description some spec", "message" => "some message", "link" => "?grep=some%20spec")
expect {
subject.results("elapsed" => 0.31337)
}.to raise_error(Teabag::Failure)
- expect(@log).to eq("\n\nFailures:\n\n 1) some spec\n\e[31m Failure/Error: some message\n\e[0m\nFinished in 0.31337 seconds\n\e[31m666 examples, 1 failure\n\e[0m\nFailed examples:\n\e[31m\n/teabag/default?grep=some%20spec\e[0m\n\n")
+ expect(@log).to eq("\n\nFailures:\n\n 1) full description some spec\n\e[31m Failure/Error: some message\n\e[0m\nFinished in 0.31337 seconds\n\e[31m666 examples, 1 failure\n\e[0m\nFailed examples:\n\e[31m\n/teabag/default?grep=some%20spec\e[0m\n\n")
expect(subject.failures.length).to be(1)
end
describe "when fail_fast is false" do
@@ -89,12 +89,12 @@
end
describe "with pending" do
it "logs the details" do
- subject.pendings << Teabag::Result.build_from_json("default", "spec" => "some spec")
+ subject.pendings << Teabag::Result.build_from_json("default", "spec" => "some spec", "full_description" => "full description some spec")
subject.results("elapsed" => 0.31337)
- expect(@log).to eq("\n\nPending:\e[33m\n some spec\n\e[0m\e[36m # Not yet implemented\n\e[0m\nFinished in 0.31337 seconds\n\e[33m666 examples, 0 failures, 1 pending\n\e[0m")
+ expect(@log).to eq("\n\nPending:\e[33m\n full description some spec\n\e[0m\e[36m # Not yet implemented\n\e[0m\nFinished in 0.31337 seconds\n\e[33m666 examples, 0 failures, 1 pending\n\e[0m")
end
end
end