Sha256: f6689371c9677180c93e1f2494cb6480d27216051e10c46f9093730848328720
Contents?: true
Size: 615 Bytes
Versions: 3
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' feature 'Accounts' do let(:errors_already_taken_subdomain) {{ errors: {subdomain:["has already been taken"]} }.to_json} scenario "creating an account" do sign_up_account expect(last_response.status).to eq 201 expect(json_last_response_body).to have_content "auth_token" expect(json_last_response_body["account"]["auth_token"]).not_to eq nil end scenario "cannot create an account with an already used subdomain" do Cadenero::V1::Account.create!(create_account_params_json) sign_up_account expected_json_errors(errors_already_taken_subdomain) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cadenero-0.0.2.b10 | spec/features/accounts/sign_up_spec.rb |
cadenero-0.0.2.b8 | spec/features/accounts/sign_up_spec.rb |
cadenero-0.0.2.b7 | spec/features/accounts/sign_up_spec.rb |