aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2012-11-22 00:42:08 -0800
committerAndre Arko <andre@arko.net>2012-11-22 00:42:56 -0800
commit0762c2f50fd62394f05977e62c6b96454985f44c (patch)
tree64160f083a74e015ca32665c8a115f50a27d604b /spec/other
parent8f634b3222ea9a3a95b1abb3addc28c55427db24 (diff)
downloadbundler-0762c2f50fd62394f05977e62c6b96454985f44c.tar.gz
modernize newgem specs
Diffstat (limited to 'spec/other')
-rw-r--r--spec/other/newgem_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/other/newgem_spec.rb b/spec/other/newgem_spec.rb
index dcfbf76f..026dbab8 100644
--- a/spec/other/newgem_spec.rb
+++ b/spec/other/newgem_spec.rb
@@ -98,11 +98,11 @@ RAKEFILE
end
it "builds bin skeleton" do
- bundled_app("test-gem/bin/test-gem").should exist
+ expect(bundled_app("test-gem/bin/test-gem")).to exist
end
it "requires 'test-gem'" do
- bundled_app("test-gem/bin/test-gem").read.should =~ /require 'test-gem'/
+ expect(bundled_app("test-gem/bin/test-gem").read).to match(/require 'test-gem'/)
end
end
@@ -114,17 +114,17 @@ RAKEFILE
end
it "builds spec skeleton" do
- bundled_app("test-gem/.rspec").should exist
- bundled_app("test-gem/spec/test-gem_spec.rb").should exist
- bundled_app("test-gem/spec/spec_helper.rb").should exist
+ expect(bundled_app("test-gem/.rspec")).to exist
+ expect(bundled_app("test-gem/spec/test-gem_spec.rb")).to exist
+ expect(bundled_app("test-gem/spec/spec_helper.rb")).to exist
end
it "requires 'test-gem'" do
- bundled_app("test-gem/spec/spec_helper.rb").read.should =~ /require_relative '..\/lib\/test-gem'/
+ expect(bundled_app("test-gem/spec/spec_helper.rb").read).to match(/require_relative '..\/lib\/test-gem'/)
end
it "creates a default test which fails" do
- bundled_app("test-gem/spec/test-gem_spec.rb").read.should =~ /false.should be_true/
+ expect(bundled_app("test-gem/spec/test-gem_spec.rb").read).to match(/false.should be_true/)
end
end
end