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

Version Path
enju_circulation-0.3.11 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.10 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.9 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.4.0.rc.1 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.8 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.7 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.4.0.beta.4 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.4.0.beta.3 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.6 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.4.0.beta.2 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.4.0.beta.1 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.5 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.4 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.3 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.2 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.1 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.0 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.0.rc.1 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.3.0.beta.1 spec/views/checked_items/new.html.erb_spec.rb
enju_circulation-0.2.5 spec/views/checked_items/new.html.erb_spec.rb