Sha256: 9b02891c890ec86d3e83062d6c08ef9341a48b4845fcf5858afd33fa58b52434

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

require "test_helper"

class SimpleFormTest < MiniTest::Spec
  include Cell::Testing
  controller SongsController # provides #url_options.

  it do
    cell("simple_form").().gsub(/\s\s/, "").must_equal %{<form class=\"simple_form edit_song\" id=\"edit_song_1\" action=\"/songs/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"&#x2713;\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /> First <div class=\"input string required song_id\"><label class=\"string required\" for=\"song_id\"><abbr title=\"required\">*</abbr> Id</label><input class=\"string required\" required=\"required\" aria-required=\"true\" type=\"text\" value=\"1\" name=\"song[id]\" id=\"song_id\" /></div><div class=\"input string required song_artist_id\"><label class=\"string required\" for=\"song_artist_id\"><abbr title=\"required\">*</abbr> Id</label><input class=\"string required\" required=\"required\" aria-required=\"true\" type=\"text\" name=\"song[artist][id]\" id=\"song_artist_id\" /></div>
</form>}
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cells-4.0.5 test/rails4.2/test/integration/simple_form_test.rb
cells-4.0.4 test/rails4.2/test/integration/simple_form_test.rb
cells-4.0.3 test/rails4.2/test/integration/simple_form_test.rb
cells-4.0.2 test/rails4.2/test/integration/simple_form_test.rb
cells-4.0.1 test/rails4.2/test/integration/simple_form_test.rb
cells-4.0.0 test/rails4.2/test/integration/simple_form_test.rb
cells-4.0.0.rc1 test/rails4.2/test/integration/simple_form_test.rb