spec/lib/snapdragon/suite_spec.rb in snapdragon-0.1.11 vs spec/lib/snapdragon/suite_spec.rb in snapdragon-0.1.12
- old
+ new
@@ -30,9 +30,18 @@
suite = Snapdragon::Suite.new(options, stub)
suite.formatter.should eq (formatter)
end
end
+ describe "#use_color?" do
+ it "returns the configured color setting" do
+ color = stub
+ options = stub(color: color)
+ suite = Snapdragon::Suite.new(options, stub)
+ suite.use_color?.should eq color
+ end
+ end
+
describe "#spec_files" do
it "creates a path object to represent the path" do
options = stub
paths = ['path_a_str', 'path_b_str']
suite = Snapdragon::Suite.new(options, paths)