Sha256: 9dcf5424a5afc4a2fb850766669deeebc1331ec491b076c972dbbc105ba17cec
Contents?: true
Size: 1.71 KB
Versions: 20
Compression:
Stored size: 1.71 KB
Contents
# encoding: UTF-8 # Copyright 2011 innoQ Deutschland GmbH # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require File.join(File.expand_path(File.dirname(__FILE__)), '../integration_test_helper') require 'database_cleaner' DatabaseCleaner.strategy = :truncation class ClientAugmentationTest < ActionDispatch::IntegrationTest self.use_transactional_fixtures = false setup do @concept = FactoryGirl.create(:concept, :published_at => nil) FactoryGirl.create(:concept, :published_at => nil) Capybara.current_driver = Capybara.javascript_driver DatabaseCleaner.start end teardown do DatabaseCleaner.clean Capybara.use_default_driver end test "dashboard concept overview" do login("administrator") visit dashboard_path(:lang => :de) table = page.find("#content table") assert table.has_css?("tr", :count => 3) assert table.has_css?("tr.highlightable", :count => 2) assert table.has_no_css?("tr.hover") concept_row = table.all("tr")[1] # click row to visit concept page concept_row.click uri = URI.parse(current_url) uri = "%s?%s" % [uri.path, uri.query] assert_equal concept_path(@concept, :published => 0, :lang => 'de', :format => 'html'), uri end end
Version data entries
20 entries across 20 versions & 1 rubygems