Sha256: 27bfbdff0151059b8a52973a95956ca0cc1b520953978fd65fb2d664d138dd25
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
require 'test_helper' class EnvsControllerTest < ActionController::TestCase tests Bushido::EnvsController # test "should route to envs" do # assert_routing '/', { :controller => "application", :action => "turd"} # #assert_routing '/bushido/envs/1.json', { :controller => "envs", :action => "update"} # end test "updates env var on post" do post :controller => :envs, :action => :update, :params => { :key => ENV["BUSHIDO_APP_KEY"], :id => "env_id", :value => "env_value" } assert_equal 200, response.status assert_equal ENV["env_id"], "env_value" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bushido-0.0.30 | test/controllers/envs_controller_test.rb |