Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing with seed 49750 #687

Open
zakak opened this issue Nov 1, 2015 · 2 comments
Open

Tests failing with seed 49750 #687

zakak opened this issue Nov 1, 2015 · 2 comments

Comments

@zakak
Copy link

zakak commented Nov 1, 2015

Reproducible with bundle exec rspec spec --seed 49750.

See errors in Travis.

Discovered in #686 but fails with any DB.

@zakak
Copy link
Author

zakak commented Nov 1, 2015

Commenting this line or skipping the enclosing test passes the other tests.
spec/generators/install_generator_spec.rb#62

Object.send :remove_const, :User

bundle exec rspec --seed 49750 spec/generators/install_generator_spec.rb spec/models/topic_spec.rb fails at spec/models/topic_spec.rb#95

# fails
expect(topic.subscriptions.last.subscriber).to eq(subscription_user)
# passes
expect(topic.subscriptions.last.subscriber.attributes).to eq(subscription_user.attributes)
# fails
expect(topic.subscriptions.last.subscriber.class).to eq(subscription_user.class)

@radar
Copy link
Collaborator

radar commented Nov 5, 2015

Good find. Thanks for doing this work, @zakak!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants