davidkirwan / ardtweeno

Ardtweeno is an application gateway which bridges devices connected via Serial Link and an Internet Protocol network. The system is designed as a PaaS (platform as a service) for the Raspberry Pi ARM platform.
GNU General Public License v3.0
5 stars 0 forks source link

Bug somewhere in Dispatcher, API or RESTAPI classes, disregarding Testing flag, and passing of configuration data at test time #16

Closed davidkirwan closed 11 years ago

davidkirwan commented 11 years ago

I've spotted an issue in production where the ~/.ardtweeno/conf.yaml file is slightly different to that in testing. Running tests on the test system pass fine, however there seems to be a bug where querying the /api/v1/zones api is returning live configuration data read in from a file during tests, when it should be working against mock data.

Blocks #3

davidkirwan commented 11 years ago

I had not accounted for the system being executed by rack/test so now have accounted for passing test parameters internally should the ENV['RACK_ENV'] == 'test'

davidkirwan commented 11 years ago

Fixed on dev branch