diff options
Diffstat (limited to 'test/integration/useflag_routes_test.rb')
-rw-r--r-- | test/integration/useflag_routes_test.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/integration/useflag_routes_test.rb b/test/integration/useflag_routes_test.rb new file mode 100644 index 0000000..3ed5718 --- /dev/null +++ b/test/integration/useflag_routes_test.rb @@ -0,0 +1,25 @@ +require 'test_helper' + +class UseflagRoutesTest < ActionDispatch::IntegrationTest + + test "can see the useflags page" do + get "/useflags" + assert_select "h1", "USE flags" + end + + test "search for multiple existing useflag" do + get "/useflags/search?q=systemd" + assert_select "h1", "USE Flag Search Results for systemd" + end + + test "search for non existing useflag" do + get "/useflags/search?q=larry" + assert_select "h1", "USE Flag Search Results for larry" + end + + test "view existing useflag" do + get "/useflags/systemd" + assert_select "h1", "systemd" + end + +end |