spec/paraduct/runner_spec.rb in paraduct-0.0.1.beta6 vs spec/paraduct/runner_spec.rb in paraduct-0.0.1.beta7

- old
+ new

@@ -38,11 +38,10 @@ let(:stdout) do <<-EOS RUBY=1.9 DATABASE=mysql - EOS end it { expect{ subject }.to raise_error(Paraduct::Errors::ProcessError, stdout) } end @@ -73,7 +72,15 @@ subject{ runner.formatted_params } let(:params){ { "ruby" => "1.9", "database" => "mysql" } } it{ should eq "ruby=1.9, database=mysql" } + end + + describe "#next_color" do + it "can call many times" do + 20.times do + expect(Paraduct::Runner.next_color).to be_an_instance_of Symbol + end + end end end