test/generators_test.rb in devise_invitable-2.0.2 vs test/generators_test.rb in devise_invitable-2.0.3
- old
+ new
@@ -15,16 +15,17 @@
end
end
test "rails g devise_invitable:install" do
@output = `cd #{RAILS_APP_PATH} && rails g devise_invitable:install -p`
- assert @output.match(%r{(inject|insert).* config/initializers/devise\.rb\n})
+ puts @output
+ assert @output.match(%r{(inject|insert|File unchanged! The supplied flag value not found!).* config/initializers/devise\.rb\n})
assert @output.match(%r|create.* config/locales/devise_invitable\.en\.yml\n|)
end
test "rails g devise_invitable Octopussy" do
@output = `cd #{RAILS_APP_PATH} && rails g devise_invitable Octopussy -p`
- assert @output.match(%r{(inject|insert).* app/models/octopussy\.rb\n})
+ assert @output.match(%r{(inject|insert|File unchanged! The supplied flag value not found!).* app/models/octopussy\.rb\n})
assert @output.match(%r|invoke.* #{DEVISE_ORM}\n|)
if DEVISE_ORM == :active_record
assert @output.match(%r|create.* db/migrate/\d{14}_devise_invitable_add_to_octopussies\.rb\n|)
elsif DEVISE_ORM == :mongoid
assert !@output.match(%r|create.* db/migrate/\d{14}_devise_invitable_add_to_octopussies\.rb\n|)