Sha256: cadd938377fe2b3cf76c6969eacd2ac5fc0d715942e60923796449324517c427

Contents?: true

Size: 1.13 KB

Versions: 11

Compression:

Stored size: 1.13 KB

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
require File.expand_path("../../acceptance_helper.rb", __FILE__)

feature 'Groups tab', %q{
  In order to increase customer satisfaction
  As an administrator
  I want to manage groups
} do

  before(:each) do
   do_login(:first_name => 'Captain', :last_name => 'Kirk', :admin => true)
  end

  scenario 'should create a new group', :js => true  do
    FactoryGirl.create(:user, :first_name => "Mr", :last_name => "Spock")
    visit admin_groups_path
    page.should have_content("Couldn't find any Groups.")
    click_link 'create a new group'
    page.should have_selector('#group_name', :visible => true)
    fill_in 'group_name', :with => 'The Enterprise Bridge'
    chosen_select('Mr Spock', :from => 'group_user_ids')
    click_button 'Create Group'
    page.should have_content('The Enterprise Bridge')
    page.should have_content('members: Mr Spock')
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/features/admin/groups_spec.rb
fat_free_crm-0.13.5 spec/features/admin/groups_spec.rb
fat_free_crm-0.13.4 spec/features/admin/groups_spec.rb
fat_free_crm-0.13.3 spec/features/admin/groups_spec.rb
fat_free_crm-0.13.2 spec/features/admin/groups_spec.rb
fat_free_crm-0.12.3 spec/features/admin/groups_spec.rb
fat_free_crm-0.12.2 spec/features/admin/groups_spec.rb
fat_free_crm-0.13.1 spec/features/admin/groups_spec.rb
fat_free_crm-0.12.1 spec/features/admin/groups_spec.rb
fat_free_crm-0.13.0 spec/features/admin/groups_spec.rb
fat_free_crm-0.12.0 spec/features/admin/groups_spec.rb