Project

General

Profile

« Previous | Next » 

Revision 445dd7ab

Added by Daniel Lobato Garcia almost 9 years ago

Fixes #11089 - Adapt tests to Rails 4

This commit contains all changes to tests in branch
https://github.com/theforeman/foreman/pull/2055 that I found to be
retrocompatible with Rails 3. The more of these we can get in, the less
code we will have to review for Rails 4, and the more relevant it will
be, as it'll be all completly Rails 4 specific.

View differences:

test/integration/top_bar_test.rb
require 'test_helper'
class TopBarTest < ActionDispatch::IntegrationTest
class TopBarIntegrationTest < ActionDispatch::IntegrationTest
def setup
FactoryGirl.create(:fact_value, :value => '2.6.9',:host => FactoryGirl.create(:host),
:fact_name => FactoryGirl.create(:fact_name, :name => 'kernelversion'))
:fact_name => FactoryGirl.create(:fact_name) )
end
test "top bar links" do

Also available in: Unified diff