Sha256: 43526adf9a83c89ab187fb42b15a6b7218534cf528c6daff70e63740fe6d025c
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
Contents
require 'spec_helper' include SessionSteps feature "Maps", js: true do background do @user = create(:user_with_account) @user.profile_fields.create(type: "ProfileFieldTypes::Address", value: "Pariser Platz 1\n 10117 Berlin") end scenario "visiting a user page and looking at the map" do login(:user) visit user_path(@user) within(".section.contact_information") do page.should have_text "10117 Berlin" page.should have_selector "div.gmnoprint" end end scenario "visiting a user page via turbolinks and looking at the map" do login(@user) visit root_path defined?(Turbolinks).should be_true find("a.my_profile").click within(".box.section.contact_information") do page.should have_text "10117 Berlin" page.should have_selector "div.gmnoprint" end end # scenario "visting a group page and looking at the members' map" do # @group = create(:group) # @group.assign_user @user # # # the second user is needed, since the large map is not shown for only # # one address field. # # # @another_user = create(:user) # @another_user.profile_fields.create(type: "ProfileFieldTypes::Address", value: "Pariser Platz 1\n 10117 Berlin") # @group.assign_user @another_user # # login(:user) # visit group_path(@group) # # within(".large_map.section") do # page.should have_selector "div.gmnoprint" # end # end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.1 | spec/features/maps_spec.rb |
your_platform-1.0.0 | spec/features/maps_spec.rb |
your_platform-0.0.2 | spec/features/maps_spec.rb |