Skip to content

Commit

Permalink
install committee and setup User Controller specs
Browse files Browse the repository at this point in the history
  • Loading branch information
npauzenga committed Jan 20, 2016
1 parent 0d7ee10 commit d03be92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ group :developemnt, :test do
gem "guard-rspec"
gem "factory_girl_rails", "~> 4.0"
gem "prmd"
gem "committee"
end

group :development do
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ GEM
rack-test (>= 0.5.4)
xpath (~> 2.0)
coderay (1.1.0)
committee (1.13.0)
json_schema (~> 0.6, >= 0.6.1)
rack (~> 1.5)
coveralls (0.8.9)
json (~> 1.8)
rest-client (>= 1.6.8, < 2)
Expand Down Expand Up @@ -246,6 +249,7 @@ DEPENDENCIES
active_model_serializers
bcrypt (~> 3.1.7)
capybara
committee
coveralls
factory_girl_rails (~> 4.0)
faker
Expand Down
5 changes: 5 additions & 0 deletions spec/controllers/users_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
RSpec.describe UsersController do
include Committee::Test::Methods

let(:user) { create(:unconfirmed_user) }
let(:schema_path) { "#{Rails.root}/config/schema/api.json" }
let(:last_response) { response }
let(:last_request) { request }

describe "POST #create" do
let(:params) { { user: create_user_input.fetch(:user_params) } }
Expand Down

0 comments on commit d03be92

Please sign in to comment.