Rohan Mitchell
b13360d2d0
Extract filter helpers from individual spec to spec helper
2016-07-29 11:01:52 +10:00
Maikel Linke
e57c06c610
Use require_relative introduced in Ruby 1.9.2
...
The new `require_relative` command is much shorter and easier to read
then the previous:
-require File.expand_path('../config/application', __FILE__)
+require_relative 'config/application'
2016-07-20 16:07:35 +10:00
Maikel Linke
489feb4e01
Longer default page size for feature specs
2016-06-01 16:28:43 +10:00
Rohan Mitchell
920d3bb974
Do not show knapsack time offset warnings unless in CI
2016-02-24 15:05:01 +11:00
Maikel Linke
00af6ef9de
cleanup knapsack integration
2016-01-13 15:05:48 +11:00
Maikel Linke
749061d60a
knapsack report generation
2016-01-13 15:05:48 +11:00
Rohan Mitchell
a27e593924
Fix deprecation notices
2016-01-07 10:51:39 +11:00
Maikel Linke
efa7c215e2
Removing usage of SimpleCov
2015-12-04 14:51:44 +11:00
Rohan Mitchell
c932d20ef5
Extract multi-sample benchmarking into a helper method
2015-11-13 14:03:07 +11:00
Rob Harrington
bbe25da117
Adding paper_trail verisoning RSpec helpers
2015-09-17 22:37:44 +10:00
Maikel Linke
2488411b94
JS feature specs completing before cleaning db
...
Some specs ran into a deadlock when the Database::Cleaner tried to do
its job while AJAX requests were still triggering other actions.
2015-09-16 15:38:09 +10:00
Rohan Mitchell
af04c61528
Add rspec-retry for intermittently failing spec
2015-08-05 13:35:53 +10:00
Rohan Mitchell
bc11140a40
Make config reset for all tests more robust. Add cache isolation for parallel specs.
2015-06-24 14:02:45 +10:00
Continuous Integration
c76021462c
Auto-merge from CI [skip ci]
2015-06-16 14:12:16 +10:00
Rohan Mitchell
ecbf3c8fa7
Ensure we start with consistent config settings
2015-06-11 16:16:36 +10:00
Rohan Mitchell
bfeb63c8d7
Ensure that changes to Spree::Config.products_require_tax_category do not leak out of the relevant spec
2015-06-11 14:16:18 +10:00
Rohan Mitchell
7946340dad
Allow more phantomjs timeout to avoid the first-spec-timeout issue
2015-05-13 15:34:27 +10:00
Rohan Mitchell
a1673afff0
Allow more time for phantomjs, required by first admin spec where assets are compiled
2015-04-17 15:46:51 +10:00
Rohan Mitchell
2914990444
Add save_and_open spec helper method to open HTML emails in the browser
2015-04-17 13:40:08 +10:00
Rohan Mitchell
af4baabb50
Include DelayedJobHelper for specs
2015-04-16 16:54:43 +10:00
Maikel Linke
5c191bcc7f
Moving test seeding into spec/support/seeds.rb
2014-12-04 15:38:59 +11:00
Maikel Linke
ef0b0a9a94
Replacing fixtures with minimal seeding
...
Seeding:
1 country: Australia
2 states: Vic, NSW
2014-11-27 16:38:39 +11:00
Rohan Mitchell
d81a78b907
Add spec helper method for logging in as admin in controller specs
2014-07-16 10:15:27 +10:00
Maikel Linke
5459a54ada
Adding perftools.rb
...
perftools.rb can profile your code. The spec_helper contains comments
about how to activate it.
2014-07-04 13:51:24 +10:00
Rohan Mitchell
fb05ad57e1
Tidy up spec helper, clean database before suite run
2014-05-22 11:00:29 +10:00
Rohan Mitchell
5a0cc1b6db
Increase capybara default_wait_time to 30 s, now we know it's not the primary cause of spec slowdown
2014-05-09 16:39:39 +10:00
Will Marshall
c52457505e
Fixing issues with offcanvas
2014-05-09 12:18:05 +10:00
Will Marshall
d9f462ba81
Moving useless assets
2014-05-09 10:12:40 +10:00
Rohan Mitchell
4ebc22f438
Remove capybara-screenshot, which appears to have been slowing down the build dramatically
2014-05-09 08:56:10 +10:00
Will Marshall
bbb70342b3
Merging
2014-05-02 15:35:43 +10:00
Rohan Mitchell
db653682b1
Add capybara-screenshot - automatic screenshots for test fails
2014-05-02 14:25:32 +10:00
Rohan Mitchell
930bc2b7ce
Set increased Capybara.default_wait_time globally
2014-05-02 14:25:32 +10:00
Will Marshall
8c319334db
Cleaning out the spree auth stuff
2014-05-02 12:34:19 +10:00
Will Marshall
8a5b93ace9
Adding a couple of basic feature tests for the sake of demonstration
2014-04-30 16:10:02 +10:00
Rohan Mitchell
95a6e34523
Spec access denied to regular user when soft-deleting variants
2014-04-24 13:20:16 +10:00
Rohan Mitchell
e28a450875
Add API call to soft-delete a variant
2014-04-24 13:20:16 +10:00
Rohan Mitchell
29235cd2cb
Merge branch 'master' into product-amount-units
...
Conflicts:
app/assets/javascripts/admin/bulk_product_update.js.coffee
spec/spec_helper.rb
2014-01-14 15:34:05 +11:00
Rohan Mitchell
7bbf2037e8
Add commented out option for remote debugging via poltergeist
2014-01-14 15:15:09 +11:00
Will Marshall
533a987684
Uncommenting imgs for Angular, disabling image loading in Poltergeist/Phantom
2014-01-08 15:20:33 +11:00
Rohan Mitchell
458f91ef91
Add feature spec helper to select distributor and order cycle
2014-01-08 11:31:44 +11:00
Rohan Mitchell
521ed565b4
Modify specs to create enterprise groups where needed
2013-10-30 13:56:10 +11:00
Rohan Mitchell
57f7d489ff
Rename OpenFoodWeb namespace to OpenFoodNetwork
2013-10-18 17:29:55 +11:00
Rohan Mitchell
b032bc0420
Add commented-out code for debugging specs that are otherwise thwarted by poltergeist's timeout
2013-09-16 14:13:07 +10:00
Rohan Mitchell
91550ac82f
Move distributor config to its own file, re-enable pry for tests
2013-09-10 09:50:16 +10:00
alexs333
999bc2697a
Implemented simlified shop flow.
2013-09-04 20:33:18 +10:00
Rohan Mitchell
2cab83cb29
Admin create order can set distributor and order cycle
2013-08-23 14:00:31 +10:00
alexs
fdf80cac5e
Adjusted specs to accommodate for new (temporary) landing page.
2013-08-20 16:14:29 +10:00
Rohan Mitchell
e318a1591d
Add FeatureToggleHelper for tests, enabling feature toggle changes for tests
2013-08-19 10:41:14 +10:00
alexs
c72a4a961f
Added the mechanism to test JSON APIs (Rabl stuff etc.)
2013-08-15 11:38:52 +10:00
Rohan Mitchell
eaf71e28bb
Raise an error when tests hit the network
2013-08-14 11:19:16 +10:00