Skip to content

Commit

Permalink
fully qualified paths for ruby-1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed May 27, 2010
1 parent 9387d57 commit 57ba637
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/rspec/rails/example/helper_example_group_spec.rb
Expand Up @@ -9,7 +9,7 @@
group.included_modules.should include(HelperExampleGroupBehaviour)
end

module FoosHelper; end
module ::FoosHelper; end

it "provides a controller_path based on the helper module's name" do
helper_spec = Object.new
Expand Down
3 changes: 2 additions & 1 deletion spec/rspec/rails/mocks/mock_model_spec.rb
Expand Up @@ -147,7 +147,8 @@
include Test::Unit::Assertions
include ActiveModel::Lint::Tests

ActiveModel::Lint::Tests.public_instance_methods.grep(/^test/).each do |m|
# to_s is to support ruby-1.9
ActiveModel::Lint::Tests.public_instance_methods.map{|m| m.to_s}.grep(/^test/).each do |m|
example m.gsub('_',' ') do
send m
end
Expand Down

0 comments on commit 57ba637

Please sign in to comment.