Sha256: 4f1b18a742278feda5ec9953430cb85c7f470fd54d4b03b996e89af35ac7ac85
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
require 'rails_helper' RSpec.describe "issues/show", type: :view do let(:project){ FactoryGirl.create(:project, owner: user) } let(:user){ FactoryGirl.create(:user) } before(:each) do @issue = assign(:issue, FactoryGirl.create(:issue, project: project, creator: user)) end it "renders attributes in <p>" do render expect(rendered).to match(/project1/) expect(rendered).to match(/issue1/) expect(rendered).to match(/Draft/) expect(rendered).to match(/user1@example.com/) end end
Version data entries
4 entries across 4 versions & 1 rubygems