Permalink
Browse files

use setter format for use_transactional_examples

  • Loading branch information...
1 parent 9382fbd commit 8000a345f9a8e0c1c8247e26f6ea166813d18619 @dchelimsky dchelimsky committed Mar 26, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/rspec/core/configuration.rb
  2. +1 −1 rspec-core.gemspec
  3. +1 −1 spec/rspec/core/configuration_spec.rb
@@ -53,7 +53,7 @@ def mock_framework=(use_me_to_mock)
@options[:mock_framework] = use_me_to_mock
end
- def use_transactional_examples(value)
+ def use_transactional_examples=(value)
@options[:use_transactional_examples] = value
end
View
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["Chad Humphries", "David Chelimsky"]
- s.date = %q{2010-03-23}
+ s.date = %q{2010-03-26}
s.description = %q{Rspec runner and example group classes}
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
s.executables = ["rspec", "spec"]
@@ -244,7 +244,7 @@ def that_thing
end
describe "#use_transactional_examples=" do
it "remembers that I don't want transactional exmaples" do
- config.use_transactional_examples false
+ config.use_transactional_examples = false
config.use_transactional_examples?.should be_false
end
end

0 comments on commit 8000a34

Please sign in to comment.