Sha256: e4880f33e54f531cd2e6c1220f1ec33fbb3dd03b446b1f19e1f9efdcd2442b37
Contents?: true
Size: 995 Bytes
Versions: 2
Compression:
Stored size: 995 Bytes
Contents
require 'spec_helper' module InfinityTest describe Runner do let(:runner_class) { InfinityTest::Runner } context "on default values" do it "commands should have a empty Array" do runner_class.new({:test_framework => :rspec}).commands.should eql [] end it "should set the application object" do runner_class.new({:test_framework => :test_unit}).application.should be_instance_of(Application) end end describe "#start_continuous_testing!" do let(:empty_runner) { InfinityTest::Runner.new({}) } let(:mock_continuous_testing) { @mock ||= mock(ContinuousTesting) } it "should call start for Continuous Testing" do application = application_with_rspec ContinuousTesting.should_receive(:new).and_return(mock_continuous_testing) mock_continuous_testing.should_receive(:start!) empty_runner.start_continuous_testing! end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
infinity_test-0.2.0 | spec/infinity_test/runner_spec.rb |
infinity_test-0.1.0 | spec/infinity_test/runner_spec.rb |