Sha256: 2dd35cb27b1624b99ca033b75f2bc0ad1abbd413dae42a841b275ab95f37c68f
Contents?: true
Size: 1003 Bytes
Versions: 2
Compression:
Stored size: 1003 Bytes
Contents
require "application_system_test_case" class BlogsTest < ApplicationSystemTestCase setup do @blog = blogs(:one) end test "visiting the index" do visit blogs_url assert_selector "h1", text: "Blogs" end test "creating a Blog" do visit blogs_url click_on "New Blog" fill_in "Body", with: @blog.body fill_in "Title", with: @blog.title fill_in "Views", with: @blog.views click_on "Create Blog" assert_text "Blog was successfully created" click_on "Back" end test "updating a Blog" do visit blogs_url click_on "Edit", match: :first fill_in "Body", with: @blog.body fill_in "Title", with: @blog.title fill_in "Views", with: @blog.views click_on "Update Blog" assert_text "Blog was successfully updated" click_on "Back" end test "destroying a Blog" do visit blogs_url page.accept_confirm do click_on "Destroy", match: :first end assert_text "Blog was successfully destroyed" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
friendly_slug-0.1.6 | friendly_slug_gem_test/test/system/blogs_test.rb |
friendly_slug-0.1.5 | friendly_slug_gem_test/test/system/blogs_test.rb |