Skip to content

Commit

Permalink
Add test demonstrating issue rubygems#2774
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Apr 20, 2014
1 parent abcb423 commit e1a6662
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/install/gems/platform_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,17 @@
expect(exitstatus).to eq(0)
end

it "does not attempt to install gems from :rbx when using --local" do
simulate_platform "ruby"

gemfile <<-G
source "file://#{gem_repo1}"
gem "only_rbx", platform: :rbx
G

bundle "install --local"
expect(out).not_to match(/Could not find gem 'only_rbx/)
end
end

describe "when a gem has no architecture" do
Expand Down
4 changes: 4 additions & 0 deletions spec/support/builders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def build_repo1
s.platform = "java"
end

build_gem "only_rbx" do |s|
s.platform = "rbx"
end

build_gem "nokogiri", "1.4.2"
build_gem "nokogiri", "1.4.2" do |s|
s.platform = "java"
Expand Down

0 comments on commit e1a6662

Please sign in to comment.