Re-implemented all development Rake tasks in Thor. Now actually tested.
Fixes: * https://www.pivotaltracker.com/story/show/25484287 & https://github.com/pivotal/jasmine/issues/183 * https://www.pivotaltracker.com/story/show/25485401 & https://github.com/pivotal/jasmine/issues/189 * https://www.pivotaltracker.com/story/show/25485953 & https://github.com/pivotal/jasmine/issues/159
This commit is contained in:
26
spec/tasks/count_specs_spec.rb
Normal file
26
spec/tasks/count_specs_spec.rb
Normal file
@@ -0,0 +1,26 @@
|
||||
require 'spec_helper.rb'
|
||||
|
||||
describe "Spec counting task" do
|
||||
|
||||
let(:jasmine_dev) { JasmineDev.new }
|
||||
|
||||
before do
|
||||
@output = capture_output { jasmine_dev.count_specs }
|
||||
end
|
||||
|
||||
it "should tell the developer that the specs are being counted" do
|
||||
@output.should match(/Counting specs/)
|
||||
end
|
||||
|
||||
it "should report the number of specs that will run in node" do
|
||||
@output.should match(/\d+ \e\[0mspecs for Node.js/)
|
||||
end
|
||||
|
||||
it "should report the number of specs that will run in the browser" do
|
||||
@output.should match(/\d+ \e\[0mspecs for Browser/)
|
||||
end
|
||||
|
||||
it "should remind the developer to check the count" do
|
||||
@output.should match(/Please verify/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user