Sha256: 9b90ddf4f697476533bfb70429d549924fb3d2df47a1998acae63455bb758fee
Contents?: true
Size: 654 Bytes
Versions: 20
Compression:
Stored size: 654 Bytes
Contents
require 'rails_helper' describe "resource_import_results/show" do fixtures :all before(:each) do @resource_import_result = resource_import_results(:one) admin = User.find_by(username: 'enjuadmin') view.stub(:current_user).and_return(admin) end it "renders a resource_import_result" do render expect(rendered).to match /MyString/ end it "renders even if a resource_import_file is deleted" do #@resource_import_result.resource_import_file = nil @resource_import_result.resource_import_file.delete @resource_import_result.resource_import_file = nil render expect(rendered).to match /MyText/ end end
Version data entries
20 entries across 20 versions & 2 rubygems