Sha256: ed1de6e738f005b8649caf9712b9d3486f17bdbd38900d5c5576da76b746386e
Contents?: true
Size: 816 Bytes
Versions: 2
Compression:
Stored size: 816 Bytes
Contents
require 'rails_helper' RSpec.describe "project_assignments/index", type: :view do let(:user){ FactoryGirl.create(:user) } let(:project){ FactoryGirl.create(:project, owner: user) } before(:each) do assign(:project_assignments, [ FactoryGirl.create(:project_assignment, project: project, user: user), FactoryGirl.create(:project_assignment, project: project, user: user), ]) end it "renders a list of project_assignments" do render assert_select "tr>td", :text => 'project1', :count => 2 assert_select "tr>td", :text => 'user1@example.com', :count => 2 assert_select "tr>td", :text => localize(Time.zone.parse('2020-03-22 09:50:00 +09:00')), :count => 2 assert_select "tr>td", :text => localize(Time.zone.parse('2020-03-22 23:40:00 +09:00')), :count => 2 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
model_base_generators-0.3.2 | example/spec/views/project_assignments/index.html.erb_spec.rb |
model_base_generators-0.3.1 | example/spec/views/project_assignments/index.html.erb_spec.rb |