spec/shelly/cli/main_spec.rb in shelly-0.4.19 vs spec/shelly/cli/main_spec.rb in shelly-0.4.21
- old
+ new
@@ -1656,31 +1656,31 @@
context "jruby engine" do
context "supported version" do
it "should show checked message" do
Bundler::Definition.stub_chain(:build, :ruby_version).
- and_return(mock(:engine => 'jruby', :version => '1.9.3', :engine_version => '1.7.8'))
+ and_return(mock(:engine => 'jruby', :version => '1.9.3', :engine_version => '1.7.10'))
- $stdout.should_receive(:puts).with(" #{green("✓")} jruby 1.7.8 (1.9 mode) is supported")
+ $stdout.should_receive(:puts).with(" #{green("✓")} jruby 1.7.10 (1.9 mode) is supported")
invoke(@main, :check)
end
end
context "unsupported version" do
it "should show error message - ruby version" do
Bundler::Definition.stub_chain(:build, :ruby_version).
- and_return(mock(:engine => 'jruby', :version => '1.8.7', :engine_version => '1.7.8'))
+ and_return(mock(:engine => 'jruby', :version => '1.8.7', :engine_version => '1.7.10'))
- $stdout.should_receive(:puts).with(" #{red("✗")} Only jruby 1.7.8 (1.9 mode) is currently supported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions")
+ $stdout.should_receive(:puts).with(" #{red("✗")} Only jruby 1.7.10 (1.9 mode) is currently supported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions")
invoke(@main, :check)
end
it "should show error message - engine version" do
Bundler::Definition.stub_chain(:build, :ruby_version).
and_return(mock(:engine => 'jruby', :version => '1.9.3', :engine_version => '1.7.3'))
- $stdout.should_receive(:puts).with(" #{red("✗")} Only jruby 1.7.8 (1.9 mode) is currently supported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions")
+ $stdout.should_receive(:puts).with(" #{red("✗")} Only jruby 1.7.10 (1.9 mode) is currently supported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions")
invoke(@main, :check)
end
end
end
@@ -1695,12 +1695,12 @@
end
context "other engines" do
it "should show unsupported error message" do
Bundler::Definition.stub_chain(:build, :ruby_version).
- and_return(mock(:engine => 'rbx', :version => '1.9.2'))
+ and_return(mock(:engine => 'mswin', :version => '1.9.2'))
- $stdout.should_receive(:puts).with(" #{red("✗")} Your ruby engine: rbx is currently unsupported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions")
+ $stdout.should_receive(:puts).with(" #{red("✗")} Your ruby engine: mswin is currently unsupported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions")
invoke(@main, :check)
end
end
end