templates/devise/cucumber.rb in prologue-0.1.2 vs templates/devise/cucumber.rb in prologue-0.2.0

- old
+ new

@@ -1,19 +1,6 @@ -create_file 'features/authentication.feature' do -<<-'FILE' -Feature: User admin authentication - As an administrator - I want to manage the application - So that I can have full control over the site - Scenario: Login as an admin - Given a logged in admin user - When I am on the admin - Then I should see "Admin" -FILE -end - create_file 'spec/factories/user.rb' do <<-'FILE' Factory.define :user do |u| u.sequence(:name) { |n| "Quick #{n}" } u.sequence(:email) { |n| "info.#{n}@quickleft.com" } @@ -24,17 +11,17 @@ end Factory.define :admin, :parent => :user do |admin| admin.email "quickleft@quickleft.com" admin.password "password" - admin.roles { [ Factory(:role, :name => 'admin') ] } + admin.roles { [ Factory(:role, :name => 'Admin') ] } end Factory.define :member, :parent => :user do |member| member.email "member@quickleft.com" member.password "password" - member.roles { [ Factory(:role, :name => 'member') ] } + member.roles { [ Factory(:role, :name => 'Member') ] } end Factory.define :role do |role| role.sequence(:name) { |n| "Quick #{n}".camelize } end @@ -77,12 +64,9 @@ end inject_into_file 'features/support/paths.rb', :after => "case page_name\n" do <<-'FILE' - when /the admin/ - '/admin' - when /logout/ '/users/sign_out' when /login/ '/users/sign_in' \ No newline at end of file