spec/controllers/cadenero/v1/accounts_controller_spec.rb in cadenero-0.0.2.b6 vs spec/controllers/cadenero/v1/accounts_controller_spec.rb in cadenero-0.0.2.b7

- old
+ new

@@ -15,10 +15,10 @@ end it "should create a schema and ensure a token is returned for the account on successful creation" do post :create, format: :json, account: { name: "First Account", subdomain: "first" }, use_route: :cadenero expect(response.status).to eq(201) expect(assigns(:account)).to eq(account) - expect(assigns(:account)[:authentication_token]).to eq(account.authentication_token) + expect(assigns(:account)[:authentication_token]).to eq(account.auth_token) end end context "when the message fails to save" do before do