Sha256: d46c301a6c502bb54495cfe6121669b1a70d55de3076287890e6d2fd4df87931

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class MoviesControllerTest < ActionController::TestCase
  test 'reveals fakes' do
    movie = Movie.create
    if Rails::VERSION::MAJOR >= 5
      assert_nothing_raised { get :show, params: {id: movie.id} }
    else
      assert_nothing_raised { get :show, id: movie.id }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_decorator-1.3.3 test/controllers/fake_detection_test.rb
active_decorator-1.3.2 test/controllers/fake_detection_test.rb
active_decorator-1.3.1 test/controllers/fake_detection_test.rb
active_decorator-1.3.0 test/controllers/fake_detection_test.rb
active_decorator-1.2.0 test/controllers/fake_detection_test.rb
active_decorator-1.1.1 test/controllers/fake_detection_test.rb
active_decorator-1.1.0 test/controllers/fake_detection_test.rb