Sha256: 3ccb17166e53ff610f35d9e03e206f59e7a9f3a673979b9b81a424f6acfca321
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
require 'rails_helper' RSpec.describe "project_assignments/show", type: :view do let(:user){ FactoryGirl.create(:user) } let(:project){ FactoryGirl.create(:project, owner: user) } before(:each) do @project_assignment = assign(:project_assignment, FactoryGirl.create(:project_assignment, project: project, user: user)) end it "renders attributes in <p>" do render expect(rendered).to match(/project1/) expect(rendered).to match(/user1@example.com/) expect(rendered).to match(Regexp.new(Regexp.escape(localize(Time.zone.parse('2020-03-22 09:50:00 +09:00'))))) expect(rendered).to match(Regexp.new(Regexp.escape(localize(Time.zone.parse('2020-03-22 23:40:00 +09:00'))))) 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/show.html.erb_spec.rb |
model_base_generators-0.3.1 | example/spec/views/project_assignments/show.html.erb_spec.rb |