Permalink
Browse files

add test to check filtering works

  • Loading branch information...
garethr committed Nov 7, 2011
1 parent 2526e1c commit 126b80c44411be591dcd39fb5e9739c71c16315b
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/integration_test.rb
View
@@ -44,3 +44,18 @@ def test_view_renders_with_auth_details
end
end
+
+class FilterTest < Test::Unit::TestCase
+ include Rack::Test::Methods
+
+ def app
+ WebFacter::App.new(["architecture"])
+ end
+
+ def test_view_filters_one_key
+ get "/"
+ json = JSON.load(last_response.body)
+ assert !json.keys.include?("architecture")
+ end
+
+end

0 comments on commit 126b80c

Please sign in to comment.