Questions tagged [autotest]

Autotest is a Ruby gem for running tests automatically when source files change.

272 questions
2
votes
2 answers

Autotest Error Message

Get the following error when I run autotest. The weird thing is that I don't have the folder /Library/Ruby/Gems/1.8/ but the folder /Library/Ruby/Gems/1.9.1/. Help? Thanks. Invalid gemspec in…
Waley Chen
  • 929
  • 3
  • 10
  • 23
2
votes
1 answer

selenium and javascript, play auto-test with fancybox as a sample

As soon as I applied fancybox scripts into my playframework application, I can not use play auto-test selenium anymore for test that page where this script is applied. This is because it seems auto-test capabilities can not emulate a real browser's…
ses
  • 13,174
  • 31
  • 123
  • 226
2
votes
6 answers

Spork/Autotest not picking up changes automatically

I'm just working on my first rails application by following the tutorial at http://ruby.railstutorial.org/. I have setup my development environment exactly as what it says in the tutorial (I'm on using a Macbook Pro with Lion) and it's working…
Hiral Desai
  • 1,062
  • 1
  • 9
  • 24
2
votes
1 answer

How autotest in rails can run integration tests?

I have this in .autotest: Autotest.add_hook :initialize do |autotest| autotest.add_mapping(/^spec\/requests\/.*_spec\.rb$/) do autotest.files_matching(/^spec\/requests\/.*_spec\.rb$/) end end when I run autotest it initially runs all unit…
Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158
2
votes
1 answer

issue with helper method in rails

I have the following helper method (app/helpers/application_helper.rb): module ApplicationHelper #Return a title on a per-page basis def title base_title = "Ruby on Rails Tutorial Sample App" if @title.nil? base_title else …
adit
  • 32,574
  • 72
  • 229
  • 373
2
votes
1 answer

How do you test dates in ruby on rails 3 with rspec?

Say for instance I have a datefield or 3 select fields for day month and yea.. How does the final selection of date get sent to the database? or in what format doesn't it get sent? 20110803 ? 2011-08-03 ? What I want to do is: Test for a valid date…
LondonGuy
  • 10,778
  • 11
  • 79
  • 151
2
votes
1 answer

hasKey doesn't see the field in the response

I have test: @Test public void sixTest() { FlowerList flowerList = new FlowerList(); Specification.installSpec(Specification.requestSpec(), Specification.responseSpec()); Response response = given() …
Otto Rahn
  • 143
  • 2
  • 10
2
votes
1 answer

Using rspec tags with autotest

I have a section of my test suite which runs a bunch of really slow importers. These tests don't need to be run often (unless the importers are actually being worked on) so I've split them out using Rspec tags:…
Ganesh Shankar
  • 4,826
  • 8
  • 43
  • 56
2
votes
1 answer

Install autotest lib not found error

I cannot get autotest to work. Rspec works fine. Firstly, I cannot get the autotest/ Rspec command to work with the bundle exec command, so I modified the Gemfile to include the following code. source 'http://rubygems.org' gem 'rails',…
Venomoustoad
  • 1,203
  • 1
  • 14
  • 38
2
votes
1 answer

FInd element on page

I have a this page, On page is elements share (left-down on post):
2
votes
3 answers

How to search title in HTML using XPath?

I am trying to get 'RGF Administrator' text from the html example below. The difficulty is that title can take two values: 'Application Settings' or 'Параметры приложения'. At the same time, html may contain other elements with title = 'Application…
NeverSleeps
  • 1,439
  • 1
  • 11
  • 39
2
votes
2 answers

Why is AutoTest freezing on "loading autotest/rails_rspec2" for rails 3

Whenever I run autotest on a Rails 3 app (no custom tests yet) it hangs at loading autotest/rails_rspec2 and I'm still extremely new to Rails to know what to check/look for. I've included my gemfile incase there is a known compatibility issue.…
Chance
  • 11,043
  • 8
  • 61
  • 84
2
votes
3 answers

setting up Ruby Koans

This question is probably pretty stupid/n00bish/inappropriate/localised/sparkly cake, so downvote all you like as long as I get the answer, as I wish very much to be able to go through the koans. :) I am trying to get this to work. (GitHub is here)…
Sophie
  • 63
  • 2
  • 8
2
votes
1 answer

Spork is repeatedly re-running failing tests in autotest

I have a new project that I am trying to get up and running with rspec, autotest and spork. I am using: rails 3.0.4 rspec 2.5.0 spork 0.9.0.rc3 autotest 4.4.6 Spork seems to be loading fine (I get a message that it is listening on a port), but…
2
votes
1 answer

RSpec Error - "Invalid Option"

I keep getting an issue when running RSpec with Autotest. My ~/.autotest file looks like this: require 'autotest/growl' require 'autotest/fsevent' Autotest.add_hook :initialize do |autotest| …
Trent Scott
  • 2,018
  • 8
  • 34
  • 50