Sha256: 648fe9c082d147c8bce7b88fbe9caa8e3e121b8d0b5bd79a8cc50800331f1ce5

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_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

2 entries across 2 versions & 1 rubygems

Version Path
enju_circulation-0.2.0.beta.2 spec/views/profiles/show.html.erb_spec.rb
enju_circulation-0.2.0.beta.1 spec/views/profiles/show.html.erb_spec.rb