Sha256: 388b4dd8df573d1ea6bacae96419834cfcf89003664fb2e720af9c0d6277c6a6

Contents?: true

Size: 905 Bytes

Versions: 1

Compression:

Stored size: 905 Bytes

Contents

require "test_helper"

class ArtistsControllerTest < Trailblazer::Test::Integration
  it "cell: Artist::Cell::Dashboard" do
    visit "/artists/dashboard"
    page.must_have_css "h1", visible: "Dashboard"
    page.must_have_css "h2", visible: "LAYOUT"
    page.must_have_css "h1[theme='cute']"
  end

  it "cell: Artist::Cell::Dashboard" do
    visit "/artists/dashboard/widget"
    page.must_have_css "h1", text: "Dashboard"
    page.wont_have_css "h2", text: "LAYOUT"
  end

  #---
  #- expose
  it "expose" do
    visit "/artists/with_expose"
    page.body.must_match %{<p>#<Song id: nil, title: nil, user_name: \"user_name\">,Reform::Form,nil</p>}
  end

  it "expose with additional args" do
    visit "/artists/with_expose_and_args"
    page.body.must_match %{<p>#<Song id: nil, title: nil, user_name: \"user_name\">,Reform::Form,#<Song id: nil, title: nil, user_name: \"user_name\"></p>}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trailblazer-future-2.1.0.rc1 test/rails5.0/test/integration/artists_controller_test.rb