Sha256: a8a80f5b6f6afaa739fc1605ce202c419564ec41e14eaad48e06f329be6182a0
Contents?: true
Size: 683 Bytes
Versions: 5
Compression:
Stored size: 683 Bytes
Contents
require 'test_helper' class Api::V1::SettingsControllerTest < ActionController::TestCase test "should get index" do get :index, { } assert_response :success assert_not_nil assigns(:settings) settings = ActiveSupport::JSON.decode(@response.body) assert !settings.empty? end test "should show individual record" do get :show, { :id => settings(:attributes1).to_param } assert_response :success show_response = ActiveSupport::JSON.decode(@response.body) assert !show_response.empty? end test "should update setting" do put :update, { :id => settings(:attributes1).to_param, :setting => { } } assert_response :success end end
Version data entries
5 entries across 5 versions & 1 rubygems