diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-06 22:20:28 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-06 22:20:28 -0400 |
commit | bf798e57a760b68c3c7460789cef6389141c067d (patch) | |
tree | 16cd7400b7f289b4aa6ec90e253c4d30d7a1a08c /test | |
parent | 91fee659eadaf6bcc4d063fd5645950da1250896 (diff) | |
parent | 628173fce3de8f5d3e31109b3aa7c964fdab38ca (diff) |
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'test')
-rw-r--r-- | test/controllers/servers_controller_test.rb | 4 | ||||
-rw-r--r-- | test/fixtures/servers.yml | 14 |
2 files changed, 7 insertions, 11 deletions
diff --git a/test/controllers/servers_controller_test.rb b/test/controllers/servers_controller_test.rb index 5891bb0..3a01d56 100644 --- a/test/controllers/servers_controller_test.rb +++ b/test/controllers/servers_controller_test.rb @@ -18,7 +18,7 @@ class ServersControllerTest < ActionController::TestCase test "should create server" do assert_difference('Server.count') do - post :create, server: { } + post :create, server: { default_user_permissions: @server.default_user_permissions } end assert_redirected_to server_path(assigns(:server)) @@ -35,7 +35,7 @@ class ServersControllerTest < ActionController::TestCase end test "should update server" do - patch :update, id: @server, server: { } + patch :update, id: @server, server: { default_user_permissions: @server.default_user_permissions } assert_redirected_to server_path(assigns(:server)) end diff --git a/test/fixtures/servers.yml b/test/fixtures/servers.yml index 937a0c0..3001059 100644 --- a/test/fixtures/servers.yml +++ b/test/fixtures/servers.yml @@ -1,11 +1,7 @@ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html -# This model initially had no columns defined. If you add columns to the -# model remove the '{}' from the fixture names and add the columns immediately -# below each fixture, per the syntax in the comments below -# -one: {} -# column: value -# -two: {} -# column: value +one: + default_user_permissions: 1 + +two: + default_user_permissions: 1 |