spec/environments/python_environment_spec.rb in SimControl-0.1.4 vs spec/environments/python_environment_spec.rb in SimControl-0.1.5
- old
+ new
@@ -33,11 +33,10 @@
expect(simulation.interpreter).to eq("foo/bar/bin/pypy")
end
it "composes the command" do
simulation = SimControl::PythonEnvironment.new script
- scenario = double("scenario")
- scenario.should_receive(:args).and_return("--args 1")
+ scenario = "--args 1"
simulation.stub(:interpreter).and_return "/foo/jpython"
expect(simulation.command(scenario)).to eq("/foo/jpython a-script --args 1")
end
it "raised an exception is a virtualenv is passed but no interpreter" do