-
Unfortunately I get the following error when using rspec inside my engine. ActiveModelSerializers works fine when starting the rails server.
The following error is thrown when running `rspec` via the…
-
A colleague at work just ran into #836, except the scenario is different. Basically, Devise adds a `before_validation` on whatever field you're using for authentication (let's say `username`) so that …
-
I'm asking because in my own tests, I literally instantiate a new ActiveRecord model with the attribute in question set to `nil`. And then I test if it's `valid?`. I feel like this is the most robust …
-
Using Padrino 0.12.3 with ActiveRecord ORM.
The shoulda generator [requires Test::Unit::TestCase](https://github.com/padrino/padrino-framework/blob/master/padrino-gen/lib/padrino-gen/generators/compo…
sshaw updated
8 years ago
-
- [x] event モデルのテストを書く
- [x] name, place, start_time, end_time, content の記入は必須であること
- [x] name は50文字以下であること
- [x] place は100文字以下であること
- [x] content は2000文字以下であること
- [x] start_time は end_time…
-
When running rspec spec, shoulda gem version >= 3.0.1
Reverting to 2.8.0 fixes this. Gemfile copied below:
```
source 'https://rubygems.org'
ruby '2.2.2'
# App env vars. Load before everything els…
-
Validating a second time with a form object does not clear the errors from the first run.
Take this simple form:
```
class MyForm < Reform::Form
property :name
validates :name, length: { maximum…
-
I'm using the following gems:
```
- shoulda-matchers (3.1.1)
- rails (4.2.6)
- rspec (3.4.0)
```
I have the following controller
``` ruby
class BookmarksController < ApplicationController
def…
-
any ideas
```
/Users/Sunny/.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.5/lib/active_record/connection_handling.rb:109:in `connection_pool': ActiveRecord::ConnectionNotEstablished…
-
I'm getting this on every spec that touches the audited models. Any idea why? I couldn't find where it's being called, but looks like it's coming from the gem.
`DEPRECATION WARNING: env is deprecated…