[Cucumber:4197] Rails 3 + pre versions of cucumber, cucumber-rails and rspec

15 vistas
Ir al primer mensaje no leído

Mark Nijhof

no leída,
23 abr 2010, 7:47:17 p.m.23/4/2010
para cu...@googlegroups.com
Hi,

I am playing with the beta of rails 3 and have setup my system with
the latest cucumber, cucumber-rails and rspec gems. Now when I run
"rake cucumber" it runs the tests fine, but when running "cucumber" I
get an exception:

mac:test.project marknijhof$ cucumber
Using the default profile...
WARNING: no such file to load -- gherkin/c_lexer. Reverting to Ruby
lexer. (RuntimeError)
/opt/local/lib/ruby/gems/1.8/gems/gherkin-1.0.20/lib/gherkin/i18n.rb:106:in
`lexer'
/opt/local/lib/ruby/gems/1.8/gems/gherkin-1.0.20/lib/gherkin/parser/parser.rb:118:in
`transition_table'
/opt/local/lib/ruby/gems/1.8/gems/gherkin-1.0.20/lib/gherkin/parser/parser.rb:107:in
`build_transition_map'
/opt/local/lib/ruby/gems/1.8/gems/gherkin-1.0.20/lib/gherkin/parser/parser.rb:103:in
`transition_map'
/opt/local/lib/ruby/gems/1.8/gems/gherkin-1.0.20/lib/gherkin/parser/parser.rb:70:in
`initialize'
/opt/local/lib/ruby/gems/1.8/gems/gherkin-1.0.20/lib/gherkin/parser/parser.rb:47:in
`new'
/opt/local/lib/ruby/gems/1.8/gems/gherkin-1.0.20/lib/gherkin/parser/parser.rb:47:in
`push_machine'
/opt/local/lib/ruby/gems/1.8/gems/gherkin-1.0.20/lib/gherkin/parser/parser.rb:19:in
`initialize'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/feature_file.rb:31:in
`new'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/feature_file.rb:31:in
`parse'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:61:in
`load_plain_text_features'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:59:in
`each'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:59:in
`load_plain_text_features'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/cli/main.rb:56:in
`execute!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/cli/main.rb:26:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/cucumber:8
/opt/local/bin/cucumber:19:in `load'
/opt/local/bin/cucumber:19

gems file:

gem 'rails', '3.0.0.beta3'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'capybara'
gem 'database_cleaner'
#gem 'cucumber-rails'
gem 'cucumber-rails', :git =>
'git://github.com/aslakhellesoy/cucumber-rails.git'
gem "rspec-rails", ">= 2.0.0.beta.1"

And of course the same happens with the autotest functionality, I was
wondering if this is something that I missed or failed to do or if it
is because it is all still very new :)

-Mark


--
Mark Nijhof
Cre8ive Thought
m: 0047 95 00 99 37
e: mark....@cre8ivethought.com
w: www.cre8ivethought.com

--
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.

aslak hellesoy

no leída,
23 abr 2010, 8:10:09 p.m.23/4/2010
para cu...@googlegroups.com
On Sat, Apr 24, 2010 at 1:47 AM, Mark Nijhof
<mark....@cre8ivethought.com> wrote:
> Hi,
>
> I am playing with the beta of rails 3 and have setup my system with
> the latest cucumber, cucumber-rails and rspec gems. Now when I run
> "rake cucumber" it runs the tests fine, but when running "cucumber" I
> get an exception:
>

Looks like compilation of the C files failed somehow. Can you try this please?

gem uninstall -aI gherkin
gem install -V gherkin > install_gherkin.txt
ruby --version >> install_gherkin.txt

Then upload install_gherkin.txt to http://gist.github.com

I also realise I accidentally replaced warn with raise in i18n.rb:106,
so falling back to the ruby parser doesn't work. I'll fix that in the
next release.

Aslak

Mark Nijhof

no leída,
24 abr 2010, 4:30:08 p.m.24/4/2010
para cu...@googlegroups.com
Hi Aslak,

Here is the gist: http://gist.github.com/377920

Also verified that it was still happening :)

mac:test.app marknijhof$ sudo gem uninstall -aI gherkin
Password:
Remove executables:
gherkin

in addition to the gem? [Yn] Y
Removing gherkin
Successfully uninstalled gherkin-1.0.20
mac:test.17Jobs.com marknijhof$ sudo gem install -V gherkin >
install_gherkin.txt
mac:test.17Jobs.com marknijhof$ ruby --version >> install_gherkin.txt
mac:test.17Jobs.com marknijhof$ mate install_gherkin.txt

mac:test.17Jobs.com marknijhof$ cucumber
Using the default profile...
undefined method `use_transactional_fixtures=' for
Cucumber::Rails::World:Class (NoMethodError)
/Users/marknijhof/Development/test.app/features/support/env.rb:49
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/rb_support/rb_language.rb:119:in
`load_code_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:83:in
`load_code_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:75:in
`load_code_files'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:74:in
`each'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:74:in
`load_code_files'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/cli/main.rb:54:in
`execute!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/cli/main.rb:26:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/cucumber:8
/opt/local/bin/cucumber:19:in `load'
/opt/local/bin/cucumber:19

-Mark

Mark Nijhof

no leída,
24 abr 2010, 4:33:20 p.m.24/4/2010
para cu...@googlegroups.com
Actually now "rake cucumber" doesn't work either anymore :( "rails
server" still works.

-Mark

Mark Nijhof

no leída,
26 abr 2010, 6:51:49 a.m.26/4/2010
para cu...@googlegroups.com
Was this helpfull? Is it only on my machine or reproducable?

-Mark

Sent from my iPad Mini

On 24. apr. 2010, at 22.33, Mark Nijhof

Aslak Hellesøy

no leída,
26 abr 2010, 7:21:34 a.m.26/4/2010
para cu...@googlegroups.com,cu...@googlegroups.com


Den 26. apr. 2010 kl. 05.51 skrev Mark Nijhof <mark....@cre8ivethought.com
>:

> Was this helpfull? Is it only on my machine or reproducable?
>
> -Mark
>
> Sent from my iPad Mini
>
> On 24. apr. 2010, at 22.33, Mark Nijhof
> <mark....@cre8ivethought.com> wrote:
>
>> Actually now "rake cucumber" doesn't work either anymore

Can you be more specific? Did you get past the gherkin error? A little
confused about what you got past and what you're stuck on.

Eifion Bedford

no leída,
26 abr 2010, 6:54:49 a.m.26/4/2010
para cu...@googlegroups.com
It's definitely not just you. I'm seeing exactly the same thing on my machine when I try to use Cucumber 0.7.0 with Rails 3.

Eifion
http://asciicasts.com
Twitter: @eifion


On Mon, Apr 26, 2010 at 11:51 AM, Mark Nijhof <mark....@cre8ivethought.com> wrote:
Was this helpfull? Is it only on my machine or reproducable?

-Mark

Sent from my iPad Mini



Mark Nijhof

no leída,
26 abr 2010, 12:54:19 p.m.26/4/2010
para cu...@googlegroups.com
Before I did your commands I was able to run Cucumber tests by
executing "rake cucumber" but after these steps you mentioned I get
the same results as with just executing "cucumber".

---

mac:test.app marknijhof$ cucumber
Using the default profile...
undefined method `use_transactional_fixtures=' for
Cucumber::Rails::World:Class (NoMethodError)
/Users/marknijhof/Development/test.app/features/support/env.rb:49
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/rb_support/rb_language.rb:119:in
`load_code_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:83:in
`load_code_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:75:in
`load_code_files'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:74:in
`each'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/step_mother.rb:74:in
`load_code_files'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/cli/main.rb:54:in
`execute!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/../lib/cucumber/cli/main.rb:26:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.0.beta.4/bin/cucumber:8
/opt/local/bin/cucumber:19:in `load'
/opt/local/bin/cucumber:19

---

mac:test.app marknijhof$ rake cucumber
(in /Users/marknijhof/Development/test.app)
/opt/local/bin/ruby -I
"/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/lib:lib"
"/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/cucumber"
--profile default
Using the default profile...
undefined method `use_transactional_fixtures=' for
Cucumber::Rails::World:Class (NoMethodError)
/Users/marknijhof/Development/test.app/features/support/env.rb:49
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`polyglot_original_require'
/opt/local/lib/ruby/gems/1.8/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
`load_code_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/step_mother.rb:85:in
`load_code_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/step_mother.rb:77:in
`load_code_files'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/step_mother.rb:76:in
`each'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/step_mother.rb:76:in
`load_code_files'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/main.rb:48:in
`execute!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/main.rb:20:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/cucumber:8
rake aborted!
Command failed with status (1): [/opt/local/bin/ruby -I "/opt/local/lib/rub...]

(See full trace by running task with --trace)

---

-Mark
>> cukes+un...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/cukes?hl=en.
>>
>
> --
> 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.
>
>



--
Mark Nijhof
Cre8ive Thought
m: 0047 95 00 99 37
e: mark....@cre8ivethought.com
w: www.cre8ivethought.com

--
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.

petRUShka

no leída,
4 may 2010, 4:08:26 p.m.4/5/2010
para Cukes
I have same trouble with cucumber 0.7.2 and cucumber-rails 0.3.1

I create issue on github:

http://github.com/aslakhellesoy/gherkin/issues/issue/57

On Apr 24, 3:47 am, Mark Nijhof <mark.nij...@cre8ivethought.com>
wrote:
> e:  mark.nij...@cre8ivethought.com

Mark Nijhof

no leída,
15 may 2010, 4:34:33 a.m.15/5/2010
para cu...@googlegroups.com
Can I do anything to help resolving this?

-Mark
e: mark....@cre8ivethought.com
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos