Permalink
Browse files

Update specs for rbx-1[89]mode being invalid.

  • Loading branch information...
brixen committed Nov 30, 2013
1 parent f54b4e7 commit 0bea6fb0780d46bab206f652dff5aaf3633ac288
@@ -1,7 +1,7 @@
rvm:
- 1.9.3
- jruby-19mode
- - rbx-19mode
+ - rbx
gemfile:
- Gemfile
- gemfiles/eventmachine-pre
@@ -1,4 +1,4 @@
language: ruby
rvm:
- jruby
- - rbx-2.0.0pre
+ - rbx-2.0.0
View
@@ -13,16 +13,16 @@
{ :key => :rvm, :issue => "Prefer jruby-18mode RVM alias to jruby" }
end
- let(:prefer_rbx18mode_over_rbx) do
- { :key => :rvm, :issue => "Prefer rbx-18mode RVM alias to rbx" }
+ let(:rbx18mode_is_no_longer_provided) do
+ { :key => :rvm, :issue => "rbx-18mode RVM alias is no longer provide. Please use one of rbx, rbx-X, rbx-X.Y, or rbx-X.Y.Z depending on your desired version" }
end
- let(:rbx20_is_no_longer_provided) do
- { :key => :rvm, :issue => "rbx-2.0 RVM alias is no longer provided. Please use rbx-18mode or rbx-19mode instead." }
+ let(:rbx19mode_is_no_longer_provided) do
+ { :key => :rvm, :issue => "rbx-19mode RVM alias is no longer provide. Please use one of rbx, rbx-X, rbx-X.Y, or rbx-X.Y.Z depending on your desired version" }
end
let(:rbx200pre_is_no_longer_provided) do
- { :key => :rvm, :issue => "rbx-2.0.0pre RVM alias is no longer provided. Please use rbx-18mode or rbx-19mode instead." }
+ { :key => :rvm, :issue => "rbx-2.0.0pre RVM alias is no longer provided. Please use one of rbx, rbx-X, rbx-X.Y, or rbx-X.Y.Z depending on your desired version" }
end
let(:otp_release_key_is_required) do
@@ -70,34 +70,34 @@ def content_of_sample_file(name)
end
end
- context "and uses rbx instead of rbx-18mode" do
+ context "and uses rbx-18mode" do
let(:travis_yml) do
- { :language => "ruby", :rvm => ["rbx", "1.9.3"] }
+ { :language => "ruby", :rvm => ["rbx-18mode", "1.9.3"] }
end
it "is invalid" do
- Travis::Lint::Linter.validate(travis_yml).should include(prefer_rbx18mode_over_rbx)
+ Travis::Lint::Linter.validate(travis_yml).should include(rbx18mode_is_no_longer_provided)
end
end
- context "and uses rbx-2.0 instead of rbx-18mode" do
+ context "and uses rbx-19mode" do
let(:travis_yml) do
- { :language => "ruby", :rvm => ["rbx-2.0", "1.9.3"] }
+ { :language => "ruby", :rvm => ["rbx-19mode", "1.9.3"] }
end
it "is invalid" do
- Travis::Lint::Linter.validate(travis_yml).should include(rbx20_is_no_longer_provided)
- Travis::Lint::Linter.valid?(content_of_sample_file("uses_old_rbx_aliases.yml")).should be_false
+ Travis::Lint::Linter.validate(travis_yml).should include(rbx19mode_is_no_longer_provided)
end
end
- context "and uses rbx-2.0.0pre instead of rbx-18mode" do
+ context "and uses rbx-2.0.0pre" do
let(:travis_yml) do
{ :language => "ruby", :rvm => ["rbx-2.0.0pre", "1.9.3"] }
end
it "is invalid" do
Travis::Lint::Linter.validate(travis_yml).should include(rbx200pre_is_no_longer_provided)
+ Travis::Lint::Linter.valid?(content_of_sample_file("uses_old_rbx_aliases.yml")).should be_false
end
end

0 comments on commit 0bea6fb

Please sign in to comment.