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

Version Path
enju_circulation-0.3.11 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.10 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.9 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.4.0.rc.1 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.8 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.7 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.4.0.beta.4 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.4.0.beta.3 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.6 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.4.0.beta.2 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.4.0.beta.1 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.5 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.4 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.3 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.2 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.1 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.0 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.0.rc.1 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.3.0.beta.1 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.2.5 spec/views/profiles/show.html.erb_spec.rb