Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 1 commit
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jul 14, 2010
@aslakhellesoy aslakhellesoy Always compare with RSpec should =~ instead of should match. This giv…
…es a diff when there is no match. Release 0.2.1.
f14f07a
Showing with 18 additions and 13 deletions.
  1. +5 −0 History.txt
  2. +3 −3 Rakefile
  3. +8 −8 aruba.gemspec
  4. +2 −2 lib/aruba/api.rb
View
5 History.txt
@@ -1,3 +1,8 @@
+== 0.2.1
+
+=== Bugfixes
+* Always compare with RSpec should =~ instead of should match. This gives a diff when there is no match. (Aslak Hellesøy)
+
== 0.2.0
=== New Features
View
6 Rakefile
@@ -5,15 +5,15 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
- gem.version = "0.2.0"
+ gem.version = "0.2.1"
gem.name = "aruba"
gem.summary = %Q{CLI Steps for Cucumber}
gem.description = %Q{CLI Steps for Cucumber, hand-crafted for you in Aruba}
gem.email = "cukes@googlegroups.com"
gem.homepage = "http://github.com/aslakhellesoy/aruba"
gem.authors = ["Aslak Hellesøy", "David Chelimsky"]
- gem.add_development_dependency "rspec", ">= 2.0.0.beta.15"
- gem.add_development_dependency "cucumber", ">= 0.8.2"
+ gem.add_development_dependency "rspec", ">= 2.0.0.beta.17"
+ gem.add_development_dependency "cucumber", ">= 0.8.4"
end
Jeweler::GemcutterTasks.new
rescue LoadError
View
16 aruba.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{aruba}
- s.version = "0.2.0"
+ s.version = "0.2.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Aslak Helles\303\270y", "David Chelimsky"]
- s.date = %q{2010-07-07}
+ s.date = %q{2010-07-14}
s.description = %q{CLI Steps for Cucumber, hand-crafted for you in Aruba}
s.email = %q{cukes@googlegroups.com}
s.extra_rdoc_files = [
@@ -46,15 +46,15 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.15"])
- s.add_development_dependency(%q<cucumber>, [">= 0.8.2"])
+ s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.17"])
+ s.add_development_dependency(%q<cucumber>, [">= 0.8.4"])
else
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta.15"])
- s.add_dependency(%q<cucumber>, [">= 0.8.2"])
+ s.add_dependency(%q<rspec>, [">= 2.0.0.beta.17"])
+ s.add_dependency(%q<cucumber>, [">= 0.8.4"])
end
else
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta.15"])
- s.add_dependency(%q<cucumber>, [">= 0.8.2"])
+ s.add_dependency(%q<rspec>, [">= 2.0.0.beta.17"])
+ s.add_dependency(%q<cucumber>, [">= 0.8.4"])
end
end
View
4 lib/aruba/api.rb
@@ -57,9 +57,9 @@ def check_file_content(file, partial_content, expect_match)
in_current_dir do
content = IO.read(file)
if expect_match
- content.should match(regexp)
+ content.should =~ regexp
else
- content.should_not match(regexp)
+ content.should_not =~ regexp
end
end
end

No commit comments for this range

Something went wrong with that request. Please try again.