Revisions for "Rspec tests fail in Guard but manually running rspec test passes. Why?"

Rspec tests fail in Guard but manually running rspec test passes. Why?

Hi Bountify.

I have a test case that seems to fail in a peculiar way and I’m not sure why.

When in Guard, I get this error.

However, when I manually run rspec ./spec/features/manage_standards_spec.rb, the test passes.

I can’t seem to get guard to pass the exact same spec. How would I fix that?

Here’s the branch with current code.

https://github.com/akshatpradhan/compliance_chimp/compare/show_standards_for_users

Here's some simple instructions to provision the app with mongodb and github authentication here: https://github.com/akshatpradhan/compliance_chimp/wiki/provisioniong

PS

I wanted to take this opportunity to thank the friends I made here and the help I received from the community. I wanted to post bounties earlier, but I felt so embarrassed from disappearing from the community past couple of months. I don’t know if it was of any help, but I keep talking about you guys at UX Boston and the Boston Security Meetup.

What happened to Lending round?

For those interested, I also wanted to update you on what happened with Lending round (a simple way to manage a small loan to your friend). After talking with about 30 people, I realized most people liked the idea but nobody said they “needed” it.

In fact, the most interesting feedback I got was, “This is a very small vertical. I can only think of a few people I know that would really find use for this, but the prototype is really well done and I hope it works well.” His feedback, I think, was very correct. This is such a small vertical and I couldn’t find anybody who was aching for it. In fact, LendFriend.com has a fully functional application and I think they’re actually struggling. I do think they are making a mistake going with PayPal and should switch to Dwolla to reduce the transaction fees so that they can automate the process of withdrawing from the borrower’s account and depositing it into the lender’s account. It’s unfortunate that Dwolla is US only though.

Where will I go with Lending round?

It’ll remain MIT licensed on github. I’ll probably add some styles to the site to make it look pretty so that it can be referenced as an accomplished project. A very big big big huge huge personal thank you to @alixaxel and @kc00l and please feel free to add it to your own portfolio. I think hiring managers like this kind of collaboration in a portfolio.

What are you doing next?

I pivoted into an area that is more of my expertise. I spearheaded PCI compliance for a nonprofit and am really aware of the struggles that are involved. I want to make that job easier, hence, Compliance chimp - a simple way to manage PCI Compliance. I think I’ve come a long way as a Rails Developer. I’ve learned so many interesting development/design practices and I’m applying that to Compliance chimp. In fact, I’ve already written my proudest commit (https://github.com/akshatpradhan/compliance_chimp/pull/1/files). To advanced developers it might not look like much, but this is the first time I’ve been able to add a feature, with a test case, and ONLY implement the features of that test case. Its my cleanest commit ever and I understand every bit of that code and how it works together.

Rspec tests fail in Guard but manually running rspec test passes. Why?
Hi Bountify. I have a test case that seems to fail in a peculiar way and I’m not sure why. When in Guard, I get this error. ![](http://i.imgur.com/q4iaYH1.png) However, when I manually run `rspec ./spec/features/manage_standards_spec.rb`, the test passes. ![](http://i.imgur.com/oacL1aH.png) I can’t seem to get guard to pass the exact same spec. How would I fix that? Here’s the branch with current code. https://github.com/akshatpradhan/compliance_chimp/compare/show_standards_for_users Here's some simple instructions to provision the app with mongodb and github authentication here: https://github.com/akshatpradhan/compliance_chimp/wiki/provisioniong **PS** I wanted to take this opportunity to thank the friends I made here and the help I received from the community. I wanted to post bounties earlier, but I felt so embarrassed from disappearing from the community past couple of months. I don’t know if it was of any help, but I keep talking about you guys at UX Boston and the Boston Security Meetup. **What happened to Lending round?** For those interested, I also wanted to update you on what happened with Lending round (a simple way to manage a small loan to your friend). After talking with about 30 people, I realized most people liked the idea but nobody said they “needed” it. In fact, the most interesting feedback I got was, “This is a very small vertical. I can only think of a few people I know that would really find use for this, but the prototype is really well done and I hope it works well.” His feedback, I think, was very correct. This is such a small vertical and I couldn’t find anybody who was aching for it. In fact, LendFriend.com has a fully functional application and I think they’re actually struggling. I do think they are making a mistake going with PayPal and should switch to Dwolla to reduce the transaction fees so that they can automate the process of withdrawing from the borrower’s account and depositing it into the lender’s account. It’s unfortunate that Dwolla is US only though. **Where will I go with Lending round?** It’ll remain MIT licensed on github. I’ll probably add some styles to the site to make it look pretty so that it can be referenced as an accomplished project. A very big big big huge huge personal thank you to @ **@alixaxel** and **@kc00l** and and @kc00l and please feel free to add it to your own portfolio. I think hiring managers like this kind of collaboration in a portfolio. **What are you doing next?** I pivoted into an area that is more of my expertise. I spearheaded PCI compliance for a nonprofit and am really aware of the struggles that are involved. I want to make that job easier, hence, Compliance chimp - a simple way to manage PCI Compliance. I think I’ve come a long way as a Rails Developer. I’ve learned so many interesting development/design practices and I’m applying that to Compliance chimp. In fact, I’ve already written my proudest commit (https://github.com/akshatpradhan/compliance_chimp/pull/1/files). To advanced developers it might not look like much, but this is the first time I’ve been able to add a feature, with a test case, and ONLY implement the features of that test case. Its my cleanest commit ever and I understand every bit of that code and how it works together.
Rspec tests fail in Guard but manually running rspec test passes. Why?
Hi Bountify. I have a test case that seems to fail in a peculiar way and I’m not sure why. When in Guard, I get this error. ![](http://i.imgur.com/q4iaYH1.png) However, when I manually run `rspec ./spec/features/manage_standards_spec.rb`, the test passes. ![](http://i.imgur.com/oacL1aH.png) I can’t seem to get guard to pass the exact same spec. How would I fix that? Here’s the branch with current code. https://github.com/akshatpradhan/compliance_chimp/compare/show_standards_for_users Here's some simple instructions to provision the app with mongodb and github authentication here: https://github.com/akshatpradhan/compliance_chimp/wiki/provisioniong **PS** I wanted to take this opportunity to thank the friends I made here and the help I received from the community. I wanted to post bounties earlier, but I felt so embarrassed from disappearing from the community past couple of months. I don’t know if it was of any help, but I keep talking about you guys at UX Boston and the Boston Security Meetup. **What happened to Lending round?** For those interested, I also wanted to update you on what happened with Lending round (a simple way to manage a small loan to your friend). After talking with about 30 people, I realized most people liked the idea but nobody said they “needed” it. In fact, the most interesting feedback I got was, “This is a very small vertical. I can only think of a few people I know that would really find use for this, but the prototype is really well done and I hope it works well.” His feedback, I think, was very correct. This is such a small vertical and I couldn’t find anybody who was aching for it. In fact, LendFriend.com has a fully functional application and I think they’re actually struggling. I do think they are making a mistake going with PayPal and should switch to Dwolla to reduce the transaction fees so that they can automate the process of withdrawing from the borrower’s account and depositing it into the lender’s account. It’s unfortunate that Dwolla is US only though. **Where will I go with Lending round?** It’ll remain MIT licensed on github. I’ll probably add some styles to the site to make it look pretty so that it can be referenced as an accomplished project. A very big big big huge huge personal thank you to **@alixaxel** and **@kc00l** and please feel free to add it to your own portfolio if you think it worthy. I think hiring managers like this kind of collaboration in a portfolio. **What are you doing next?** I pivoted into an area that is more of my expertise. I spearheaded PCI compliance for a nonprofit and am really aware of the struggles that are involved. I want to make that job easier, hence, Compliance chimp - a simple way to manage PCI Compliance. I think I’ve come a long way as a Rails Developer. I’ve learned so many interesting development/design practices and I’m applying that to Compliance chimp. In fact, I’ve already written my proudest commit (https://github.com/akshatpradhan/compliance_chimp/pull/1/files). To advanced developers it might not look like much, but this is the first time I’ve been able to add a feature, with a test case, and ONLY implement the features of that test case. Its my cleanest commit ever and I understand every bit of that code and how it works together.
Back to question