Hi,

I ran in trouble with unexpected rollbacks using cucumber 0.3.0.

My feature-file looks like

  Scenario: Create Valid Item
    Given I start

and the step is
  Given /^I start$/ do
    get "/items"
  end

In my log/test.log I get
  SQL (0.2ms)   SET NAMES 'utf8'
  SQL (0.2ms)   SET SQL_AUTO_IS_NULL=0
  SQL (0.1ms)   BEGIN


Processing ItemsController#index (for 127.0.0.1 at 2009-04-19 20:54:08) [GET]
  Item Load (0.2ms)   SELECT * FROM `items`
Rendering template within layouts/application
Rendering items/index
Completed in 41ms (View: 30, DB: 1) | 200 OK [http://www.example.com/items]
  SQL (0.0ms)   Mysql::Error: query: not connected: ROLLBACK




If using my browser directing it at /items in the test-environment I get

  SQL (0.3ms)   SET NAMES 'utf8'
  SQL (0.2ms)   SET SQL_AUTO_IS_NULL=0


Processing ItemsController#index (for 192.168.192.1 at 2009-04-19 20:55:07) [GET]
  Item Load (0.3ms)   SELECT * FROM `items`
Rendering template within layouts/application
Rendering items/index
Completed in 35ms (View: 23, DB: 1) | 200 OK [http://192.168.192.25/items]

(see also http://www.pastie.org/451600 for the logs)

Any idea what causes the error?

TIA,
Martin


_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to