cucumber

Ruby on Rails - error when running cucumber: You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0.

我与影子孤独终老i 提交于 2019-12-21 03:21:33
问题 I know this question has been asked in one form or the another before, but I still can't get a working solution for this. I'm taking the saas course offered online and the code is directly cloned from https://github.com/saasbook/hw3_rottenpotatoes When I run cucumber from the command prompt Using the default profile... You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0. Using bundle exec may solve this. (Gem::LoadError) /Users/chemin/.rvm/gems/ruby-1

Ruby on Rails - error when running cucumber: You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0.

亡梦爱人 提交于 2019-12-21 03:21:28
问题 I know this question has been asked in one form or the another before, but I still can't get a working solution for this. I'm taking the saas course offered online and the code is directly cloned from https://github.com/saasbook/hw3_rottenpotatoes When I run cucumber from the command prompt Using the default profile... You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0. Using bundle exec may solve this. (Gem::LoadError) /Users/chemin/.rvm/gems/ruby-1

DHH on Unit Testing : Is RSpec indeed needlessly complicated?

给你一囗甜甜゛ 提交于 2019-12-20 19:25:07
问题 I happen to be a subscriber of Ruby Inside, since I'm particularly interested in Rails. Yesterday, the creator of Rails, David Heinemeier Hansson, pretty much said that he's just using test/unit. I would understand that, since it's Rails internal, but he seems to have given a strong opinion. He believes that RSpec and Cucumber are needlessly complicated. I would normally not pay much attention, but it depends on who says something. I respect Hansson a lot and his opinion got me thinking. When

How to fill tinymce-rails editor with capybara and selenium?

佐手、 提交于 2019-12-20 18:45:12
问题 I have trouble with using capybara to test tinymce form. I'm using tinymce-rails and have 7 editors in my form. Also I'm using asciimath plugin with tinymce. Everything works fine, but I'm unable to write tests to fill in tinymce editor. Here is how my step definition code looks like, very similar to what is described here: within_frame("content_ifr") do editor = page.find_by_id('tinymce') editor.native.send_keys 'test' end The problem is when I run the following: editor.native.clear # works,

Cucumber with TestNG

蹲街弑〆低调 提交于 2019-12-20 18:09:45
问题 We have a very extensive framework in TestNG with Selenium WebDriver and I want to be able to continue using it, but use Cucumber BDD with it.I am aware that Cucumber works with JUnit, but not sure if it works with TestNG. Can anyone let me know if this is going to be available anytime soon ? If not, are there any workarounds so that I can use Cucumber with TestNG? Also, are there any other BDDs that are available in the market which can be used with TestNG ? 回答1: Dependency in maven's pom:

Cucumber with TestNG

橙三吉。 提交于 2019-12-20 18:09:06
问题 We have a very extensive framework in TestNG with Selenium WebDriver and I want to be able to continue using it, but use Cucumber BDD with it.I am aware that Cucumber works with JUnit, but not sure if it works with TestNG. Can anyone let me know if this is going to be available anytime soon ? If not, are there any workarounds so that I can use Cucumber with TestNG? Also, are there any other BDDs that are available in the market which can be used with TestNG ? 回答1: Dependency in maven's pom:

Capybara, finding within a css element

£可爱£侵袭症+ 提交于 2019-12-20 17:35:19
问题 I'm working with Ruby on Rails 3, Cucumber, and Capybara I've been searching for quite some time, and I can't figure out how to find a specific page element within a css tag. In my case, I need to make sure that a name is found inside of a table, and not in the "Welcome [Name]". I tried something like: within('table') do page.body.index("[Name]") end And I have a table with id='table' . But I'd like to know how to do this for any css element, such as: within('h2') do page.body.should have

Has anyone figured out a way to run the same cucumber scenario on multiple browsers/web drivers?

萝らか妹 提交于 2019-12-20 10:41:44
问题 I'm using cucumber + capybara for some web automation testing. I'd love to be able to wire up my own tag (something like @all_browsers before the scenario) and have it run against a list of web drivers I set (celerity, selenium on firefox, ie and chrome). I don't want to have to write the scenario 4 different times with 4 different tags out front. I've looked into trying to do this with a new driver I register via: Capybara.register_driver :all_browsers do |app| # What would even work in here

Cucumber not showing coloured output in windows

心已入冬 提交于 2019-12-20 08:59:33
问题 this is probably something really stupid but I can't work it out. I upgraded my version of cucumber to v 0.10.0 and now the test's (running on Win 7) are not showing coloured output with the "pretty" formatter. When tests are run it prints this error: *** WARNING: You must use ANSICON 1.31 or higher (http://adoxa.110mb.com/ansicon) to get coloured output on Windows I have been to http://adoxa.110mb.com/ansicon but it's not obvious to me how I should be upgrading it. Anyone know how to upgrade

Are there any non-developer tools to edit gherkin files? [closed]

送分小仙女□ 提交于 2019-12-20 08:56:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Gherkin syntax files are just plain text so any editor such as notepad can be used. However, one of the more important things we are using this for is to provide tables of sample data. Without good formatting options the files become hard to read. There are some good tools (see: How to get Gherkin syntax