active_record is getting a `require': no such file to load

4 views
Skip to first unread message

samt

unread,
Sep 15, 2011, 8:10:58 AM9/15/11
to Cukes
I have a database tear-down script and I'm getting the error:

`require': no such file to load -- active_record

However, if from the command line I use: cucumber -t @test
Then its runs with no errors, however with: bundle exec cucumber
features -t @test
This causes the error.
The problem here is that this is what's being called when using my
rake features in CI.

t.cucumber_opts = "features -t @test"

Tried all the following: activerecord (3.0.6, 3.0.3, 3.0.1)

Everton Moreth

unread,
Sep 15, 2011, 8:19:37 AM9/15/11
to cu...@googlegroups.com
I have the same problem here:


But in this case I'm trying to use rcov.

Everton Moreth


--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.


Matt Wynne

unread,
Sep 15, 2011, 8:20:23 AM9/15/11
to cu...@googlegroups.com

On 15 Sep 2011, at 13:10, samt wrote:

> I have a database tear-down script and I'm getting the error:
>
> `require': no such file to load -- active_record
>
> However, if from the command line I use: cucumber -t @test
> Then its runs with no errors, however with: bundle exec cucumber
> features -t @test
> This causes the error.

So my guess is you don't have active_record in your Gemfile. Am I right?

> The problem here is that this is what's being called when using my
> rake features in CI.
>
> t.cucumber_opts = "features -t @test"
>
> Tried all the following: activerecord (3.0.6, 3.0.3, 3.0.1)
>

> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>

cheers,
Matt

--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne

samt

unread,
Sep 15, 2011, 10:32:22 AM9/15/11
to Cukes
Hi,

No not using a gemfile

On Sep 15, 1:20 pm, Matt Wynne <m...@mattwynne.net> wrote:
> On 15 Sep 2011, at 13:10, samt wrote:
>
> > I have a database tear-down script and I'm getting the error:
>
> > `require': no such file to load -- active_record
>
> > However, if from the command line I use: cucumber -t @test
> > Then its runs with no errors, however with: bundle exec cucumber
> > features -t @test
> > This causes the error.
>
> So my guess is you don't have active_record in your Gemfile. Am I right?
>
> > The problem here is that this is what's being called when using my
> > rake features in CI.
>
> > t.cucumber_opts = "features -t @test"
>
> > Tried all the following: activerecord (3.0.6, 3.0.3, 3.0.1)
>
> > --
> > You received this message because you are subscribed to the Google Groups "Cukes" group.
> > To post to this group, send email to cu...@googlegroups.com.
> > To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
>
> cheers,
> Matt
>
> --
> Freelance programmer & coach
> Author,http://pragprog.com/book/hwcuc/the-cucumber-book(with Aslak Hellesøy)
> Founder,http://relishapp.com+44(0)7974430184begin_of_the_skype_highlighting            +44(0)7974430184      end_of_the_skype_highlighting|http://twitter.com/mattwynne

samt

unread,
Sep 15, 2011, 10:44:17 AM9/15/11
to Cukes
Hmm actually yes I am and no it doesn't have activerecord will add it
and resolve the dependencies
> > Founder,http://relishapp.com+44(0)7974430184begin_of_the_skype_highlighting            +44(0)7974430184      end_of_the_skype_highlightingbegin_of_the_skype_highlighting            +44(0)7974430184begin_of_the_skype_highlighting            +44(0)7974430184      end_of_the_skype_highlighting      end_of_the_skype_highlighting|http://twitter.com/mattwynne

samt

unread,
Sep 15, 2011, 10:53:03 AM9/15/11
to Cukes
ok so this was bad me, if using a gemfile then include required gems!
> > > Founder,http://relishapp.com+44(0)7974430184begin_of_the_skype_highlighting            +44(0)7974430184      end_of_the_skype_highlightingbegin_of_the_skype_highlighting            +44(0)7974430184begin_of_the_skype_highlighting            +44(0)7974430184      end_of_the_skype_highlighting      end_of_the_skype_highlightingbegin_of_the_skype_highlighting            +44(0)7974430184begin_of_the_skype_highlighting            +44(0)7974430184      end_of_the_skype_highlightingbegin_of_the_skype_highlighting            +44(0)7974430184begin_of_the_skype_highlighting            +44(0)7974430184      end_of_the_skype_highlighting      end_of_the_skype_highlighting      end_of_the_skype_highlighting|http://twitter.com/mattwynne
Reply all
Reply to author
Forward
0 new messages