Skip to content

Commit

Permalink
add test for issue assaf#50
Browse files Browse the repository at this point in the history
  • Loading branch information
dougcole committed May 20, 2011
1 parent 7ff6eaf commit 63b3885
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/rails_test.rb
Expand Up @@ -23,6 +23,17 @@ def setup
end
end

def test_chooses_sets_alternatives_for_rails_tests
experiment(:pie_or_cake).chooses(true)
get :index
assert_equal 'true', @response.body

experiment(:pie_or_cake).chooses(false)
get :index
assert_equal 'false', @response.body
end


def test_vanity_cookie_is_persistent
get :index
assert cookie = @response["Set-Cookie"].find { |c| c[/^vanity_id=/] }
Expand Down

0 comments on commit 63b3885

Please sign in to comment.