Sha256: a94bfa001b361482717a4b5b128c76775376abc9295d4de5406041ffa0cbceab
Contents?: true
Size: 464 Bytes
Versions: 21
Compression:
Stored size: 464 Bytes
Contents
require 'rails_helper' describe "checked_items/new" do fixtures :all it "renders new checkout form" do profile = FactoryBot.create(:profile, user_number: "foo") user = FactoryBot.create(:user, profile: profile, username: "bar") basket = FactoryBot.create(:basket, user: user) assign(:basket, basket) assign(:checked_items, basket.checked_items) render expect(rendered).to match /bar/ expect(rendered).to match /foo/ end end
Version data entries
21 entries across 21 versions & 1 rubygems