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

Widespread spec failure when not using memcache #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kyletolle
Copy link

I've pulled down the repository and run the specs, but I get 53 failures since I'm not using memcache.

My steps:

cd ~/code/test
git clone https://github.com/pauldowman/gitmodel.git
rvm gemset create gitmodel-test
rvm gesmset use gitmodel-test
bundle install
rspec

See 53 of the 79 examples fail because of the following error:

Dalli::RingError:
       No server available

From what I can tell, the error is at gitmodel.rb:102 because spec_helper.rb:21 sets memcache_servers to ['localhost']. So if I don't actually have a memcache server running, this will cause the errors in later tests.

In order to get the specs passing by default for everyone, I've commented out this line. Added another comment so people know they can use this line if they have memcache installed.

Comment out the line specifying the array of memcache servers from the
spec_helper so the tests will pass by default for everyone, including
people who don't have memcache installed.
Added a comment before this so users know this setting exists if they
do have memcache installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant