Skip to content

Commit

Permalink
Don't match on rake loaded files
Browse files Browse the repository at this point in the history
  • Loading branch information
justinko committed Oct 25, 2011
1 parent 0b9b153 commit 364fbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/rspec/scaffold/scaffold_generator.rb
Expand Up @@ -76,7 +76,7 @@ def ns_table_name
end

def ns_given?
ARGV.any? && ARGV[0].match(/(\w+)\/(\w+)/)
ARGV.any? && ARGV[0].match(/\A(\w+)\/(\w+)/)
end

# Returns the name of the mock. For example, if the file name is user,
Expand Down

0 comments on commit 364fbb0

Please sign in to comment.