Sha256: d2ccb9d5638891c365331379d295eb7a257c658e40980f34e8b6f492959e4a0c
Contents?: true
Size: 689 Bytes
Versions: 27
Compression:
Stored size: 689 Bytes
Contents
# -*- encoding: utf-8 -*- require 'rails_helper' describe "profiles/show" do fixtures :all before(:each) do view.stub(:current_user).and_return(User.where(username: 'enjuadmin').first) assign(:profile, User.where(username: 'enjuadmin').first.profile) end it "renders attributes in <p>" do allow(view).to receive(:policy).and_return double(update?: true, destroy?: true) render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Due date/) # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr:nth-child(2)>td:nth-child(2)", /00014/ end end
Version data entries
27 entries across 27 versions & 1 rubygems