Sha256: 9ade262d5b7d094be7c42ff578db16f2fd3682237cda02b5da5a111fe5c5fef4

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 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

3 entries across 3 versions & 2 rubygems

Version Path
lulalala_presenter-0.1.0 test/controllers/fake_detection_test.rb
active_decorator-1.0.0 test/controllers/fake_detection_test.rb
active_decorator-0.9.0 test/controllers/fake_detection_test.rb