Sha256: f0c3a12bad2cc05fc864a94581ec8dece4c3d4f01cf5c08664554ed880979868

Contents?: true

Size: 361 Bytes

Versions: 8

Compression:

Stored size: 361 Bytes

Contents

require 'spec_helper'

describe 'users/_following_modal.html.erb' do
  let(:user) { FactoryGirl.create(:user, display_name: "Frank") }

  before do
    assign :following, [user]
  end

  it "should draw user list" do
    render
    page = Capybara::Node::Simple.new(rendered)
    expect(page).to have_link "Frank", href: "/users/#{user.to_param}" 
  end

end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sufia-4.0.1 spec/views/users/_following_modal.html.erb_spec.rb
sufia-4.0.0 spec/views/users/_following_modal.html.erb_spec.rb
sufia-4.0.0.rc2 spec/views/users/_following_modal.html.erb_spec.rb
sufia-4.0.0.rc1 spec/views/users/_following_modal.html.erb_spec.rb
sufia-4.0.0.beta4 spec/views/users/_following_modal.html.erb_spec.rb
sufia-4.0.0.beta3 spec/views/users/_following_modal.html.erb_spec.rb
sufia-4.0.0.beta2 spec/views/users/_following_modal.html.erb_spec.rb
sufia-4.0.0.beta1 spec/views/users/_following_modal.html.erb_spec.rb