Sha256: 77fa5e910cf85cfbd37c347c3ef026c531d350bba978d7ba27da5b4e3f31f417

Contents?: true

Size: 489 Bytes

Versions: 24

Compression:

Stored size: 489 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe "list creation", :js => true do
  
  it "should create the sidebar with list of users" do
    
    #first setup what the list should display    
    User.class_eval do
      def gmaps4rails_sidebar
        name
      end
    end
    
    Factory(:user, :name => "User1")
    Factory(:user, :name => "User2")
    
    visit test_list_path
    page.should have_content("User1")
    page.should have_content("User2")
  end
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
gmaps4rails-0.11.0 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.10.2 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.10.1 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.10.0 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.10.0.pre1 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.9.1 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.9.0 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.8 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.7 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.6 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.5 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.4 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.3 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.2 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.1 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.8.0 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.7.7 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.7.6 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.7.5 test/dummy/spec/requests/users_spec.rb
gmaps4rails-0.7.4 test/dummy/spec/requests/users_spec.rb