Philipp Rothmann
a1682932ac
fix: price_markup with value nil gives exception
...
fixes #1011
2023-06-16 13:20:33 +02:00
Philipp Rothmann
fb2b4d8a8a
chore: rubocop
...
chore: fix api test conventions
chore: rubocop -A spec/
chore: more rubocop -A
fix failing test
rubocop fixes
removes helper methods that are in my opinion dead code
more rubocop fixes
rubocop -a --auto-gen-config
2023-06-09 17:35:05 +02:00
Philipp Rothmann
c6560e0cea
Add additional model and integration tests
...
This commit adds new tests for a better coverage.
integration/
* home
* supplier
models/
* article
* delivery
* group_order_article
* supplier
also adds a new factory for delivery
Co-authored-by: viehlieb <pf@pragma-shift.net>
Co-authored-by: Tobias Kneuker <tk@pragma-shift.net>
2022-11-27 12:39:57 +01:00
3ffdb424d5
replace deprecated update_attributes with update
2022-10-26 13:19:27 +02:00
Philipp Rothmann
0c5ff5b41d
Add test to delete article
2022-10-09 13:24:29 +02:00
Patrick Gansterer
7e8c1d041d
Auto correct rubocop style issues
2022-02-20 16:28:54 +01:00
Patrick Gansterer
ea2862fdef
Run rubocop --fix-layout and remove encoding comments
2021-03-02 09:12:19 +01:00
wvengen
8a5c130875
Bundle update
2017-10-27 23:21:31 +02:00
Patrick Gansterer
ca7416f2e7
Check correct calculation of fc_price
2017-10-08 12:33:14 +02:00
wvengen
610cd8fce4
Test rounded at cents
2015-04-11 02:52:57 +02:00
wvengen
c31d015434
Bundle update (and fix spec that started failing)
2015-01-14 21:20:14 +01:00
wvengen
6e990fed4c
Upgrade to rails 4.1
2014-11-21 14:37:56 +01:00
wvengen
647b7f0430
allow to synchronize all articles of a shared supplier
2014-09-02 12:58:31 +02:00
wvengen
21838e9c84
prepare for RSpec 3.0
2014-08-19 11:53:01 +02:00
wvengen
7841245795
migrate to Rails 4.0 (closes foodcoops#214)
...
Conflicts:
Gemfile.lock
2014-02-24 12:46:28 +01:00
wvengen
49e563af89
allow non-shared articles to be part of a shared supplier using a blank order number
2014-01-24 22:10:00 +01:00
wvengen
4219eff0ab
fix rspec warning
2013-11-13 23:22:26 +01:00
wvengen
ac6b00d4f5
add unit tests for shared database synchronisation
2013-11-13 23:09:17 +01:00
wvengen
6b0146eb95
add spec for article#in_open_order
2013-09-18 22:46:57 +02:00
Manuel Wiedenmann
f462e70e49
uses FactoryGirl helpers
2013-09-18 12:44:41 +02:00
wvengen
b302cbde4f
make sure price spec works when price is zero
2013-07-25 09:42:29 +02:00
wvengen
ebf71ad494
fix price history spec
2013-07-25 00:01:58 +02:00
wvengen
d602b7cd0d
use expect instead of should in specs
2013-07-24 22:48:48 +02:00
wvengen
3c264f6225
add some rspec tests for supplier and article
2013-07-14 02:50:54 +02:00