History log of /ontohub/spec/spec_helper.rb
Revision Date Author Comments Expand
c48b3d4873fe91e5c3bf792b5e634c3595275535 17-May-2016 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Update gem webmock to 2.0.2.

6712dc6136cec06e2277530af5c2cb6ee5b3cdef 17-Jan-2016 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Put VCR config into shared_helper Cucumber did not save VCR cassettes in the fixtures/vcr directory because VCR was not configured.

d9fd37626358bb665838a4ddd23114b1f68e93f7 24-Oct-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Merge simplecov reports for RSpec and Cucumber.

97900da4ed1e0e61eca66a403bee1492cea873c8 09-Aug-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Fix specs by stubbing the force free worker The worker blocks the spec execution because it locks a semaphore synchronously while the same process is already in the critical section of another lock with the same semaphore-key.

e3334a4a0ab1ea6e44e84f807dc87acdf5960c7f 07-Jun-2015 Tim Reddehase <robustus@rightsrestricted.com>

fix bundle-handling of vcr/webmock Every http-request is blocked if webmock is loaded during development. So we switch loading of and perform the requiring manually in the spec-helper and the rake-task.

fc0c892399c3b002f273881393004fce31414f93 27-May-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Use DocumentationProgressFormatter locally.

4c405005e95a28dd5a0b0c978aaece1b097d9486 26-May-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Add custom VCR request matcher for proving.

297d4dd3c6e0819eebb2ba39e04536053691c0fe 26-May-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Add helper methods for Rspec metadata retrieval They are especially used for generating a generic cassette name to an example or a context.

26352e190f20e63d3cf5cd756372f5b32001cca9 26-May-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Let VCR only ignore elasticsearch.

1b739f5dd48dc239e3b0500a9b64c58e4e2efd29 26-May-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Allow to disable truncation in favor of deletion This allows us to access the data in the database from other processes (e.g. the rails server in test mode).

e937ecc97e91f77e9f1f63de78c8bd8f074865b9 06-May-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Let the caller decide if simplecov should be used.

3b5cf2ac667519a8140833a003a74991fd20f5b5 27-Apr-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Stub cp_keys in the corresponding specs.

c829cb13b4875500efbe54aaa3d3c013564d9a8d 05-Apr-2015 Tim Reddehase <robustus@rightsrestricted.com>

move helper methods into common file This allows both specs and features to benefit from the helper methods.

81546bc209b041cfafa1f9194c29d1ff22c99281 25-Mar-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Remove old stubbing methods.

2b3afb124e8baffd69f1926aba23a22d770ac78f 25-Mar-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Move hets helper methods to hets_helper.

aadc31367c8661976420b1ee6722dfd1cf06fb24 25-Mar-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Remove old parsing method.

4e4dd16617d60a2293b37431ebc21d94aeea80dc 25-Mar-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Add hets helper methods for specs.

1c98fd985ee711ad05ba5270bcd9136fb1ad7d8c 11-Mar-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Add mechanics for testing with prove fixtures.

022df7f893582e7e8efffce816ae27f6d1015766 11-Mar-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Move Ontology parser to DG module A Prove module will be added for parsing of the prove-command output.

9133c3cd381965a1bb743c8ee76562a2886a0494 09-Mar-2015 Tim Reddehase <robustus@rightsrestricted.com>

add spec for ontology json validation. fix language.

ca33bd2a2f1927d800bd1c4851a4349561206874 24-Feb-2015 Tim Reddehase <robustus@rightsrestricted.com>

fix spec-helper for HetsInstance.choose! As the method now raises errors instead of returning nil, we'll need to handle that.

c567fa0a1f6fe8f882615edd1b9fcd3d293ddb52 24-Feb-2015 Tim Reddehase <robustus@rightsrestricted.com>

rename HetsInstance.choose to choose! As choose! raises errors now, this is the more appropriate name.

2bc45485d0fe7200960bd17f1b81ea477bf16bef 04-Feb-2015 Tim Reddehase <robustus@rightsrestricted.com>

support triple-slash in locid-for and hash-query We support commands for triple-slash as additional args to locid_for and a hash at the end for the query-strings key-value pairs.

a780acfdd9f2c812963c381dfb2bc036443c84f8 04-Feb-2015 Tim Reddehase <robustus@rightsrestricted.com>

fix locid-related specs.

5931410e830c72a0c88879ed8acf01a1210a42ad 16-Jan-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Colorize the output, if the environment says so.

dca8e84db91cb5a99bbe25b83c731fa3b96263d6 15-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Move shared_helper to spec directory.

38eb8e414b6c73efa6bcf81760625385094b757b 15-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Move fixtures to spec directory.

/ontohub/.gitignore controllers/files_controller_spec.rb factories/git_repository.rb factories/ontology_version.rb factories/repository.rb fixtures/.gitignore fixtures/ontologies/casl/partial_order.casl fixtures/ontologies/casl/test1.casl fixtures/ontologies/casl/test2.casl fixtures/ontologies/clif/Px.clif fixtures/ontologies/clif/Qy.clif fixtures/ontologies/clif/Rz.clif fixtures/ontologies/clif/cat.clif fixtures/ontologies/clif/cat1.clif fixtures/ontologies/clif/cat2.clif fixtures/ontologies/clif/monoid.clif fixtures/ontologies/clif/semigroup.clif fixtures/ontologies/clif/sequential_parse.clif fixtures/ontologies/dol/align.dol fixtures/ontologies/dol/basic_blendoid.dol fixtures/ontologies/dol/double_import_blendoid.dol fixtures/ontologies/dol/double_mapped_blendoid.dol fixtures/ontologies/dol/double_mapped_logic_translated_blendoid.dol fixtures/ontologies/dol/imports.dol fixtures/ontologies/dol/reference.dol fixtures/ontologies/dol/simple_mapping.dol fixtures/ontologies/hets-out/.gitkeep fixtures/ontologies/owl/Domain_Fields_Core.owl fixtures/ontologies/owl/cycle.owl fixtures/ontologies/owl/generations.owl fixtures/ontologies/owl/pizza.owl fixtures/ontologies/rdf/sample.rdf fixtures/ontologies/xml/.gitkeep fixtures/ontologies/xml/broken.xml fixtures/ontologies/xml/catalog-v001.xml fixtures/ontologies/xml/empty.xml fixtures/oops/invalid_request.xml fixtures/oops/sunrealm.xml fixtures/oops/valid_request.xml fixtures/vcr/oops/invalid.yml fixtures/vcr/oops/valid.yml lib/oops_request/responses_spec.rb models/oops_spec.rb spec_helper.rb
b5d0ff6d0e8ec48e5e484716f3ae17e9cacf3987 15-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Add VCR config to spec_helper.

2ccb326df5485515157d8f4cc2116f9ac0857289 15-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Revert "Allow WebMock net connect in rspec." This reverts commit 800e3d71a2ad5728a37ba0f7bd21368b4f20639b.

0e046f69ce27bf8228865704eb4626797fc56184 15-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Allow WebMock net connect in rspec.

7c7a19761235efff584ee65a1c6dc4aa1735ff64 15-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Omit explicit `FactoryGirl.` on create and build.

controllers/admin/teams_controller_spec.rb controllers/admin/users_controller_spec.rb controllers/autocomplete_controller_spec.rb controllers/entities_controller_spec.rb controllers/graphs_controller_spec.rb controllers/home_controller_spec.rb controllers/language_adjoint_controller_spec.rb controllers/language_mappings_controller_spec.rb controllers/languages_controller_spec.rb controllers/logic_adjoint_controller_spec.rb controllers/logic_mappings_controller_spec.rb controllers/logics_controller_spec.rb controllers/ontologies_controller_spec.rb controllers/oops_request_controller_spec.rb controllers/permissions_controller_spec.rb controllers/repositories_controller_spec.rb controllers/sentences_controller_spec.rb controllers/serializations_controller_spec.rb controllers/team_users_controller_spec.rb controllers/teams/permissions_controller_spec.rb controllers/teams_controller_spec.rb controllers/users_controller_spec.rb helpers/sentence_helper_spec.rb lib/logicgraph_parser/stub_spec.rb lib/ontology_search_spec.rb lib/oops_request/responses_spec.rb lib/oops_request/states_spec.rb models/autocomplete_spec.rb models/category.rb models/distributed_ontology_spec.rb models/graph_data_fetcher_spec.rb models/logic_spec.rb models/ontology/distributed_spec.rb models/ontology_spec.rb models/permission_spec.rb models/repository/access_spec.rb models/repository/browsing_spec.rb models/repository/jobcount_spec.rb models/repository/save_file_spec.rb models/repository_spec.rb models/team_spec.rb models/team_user_spec.rb models/url_map_spec.rb models/user_spec.rb spec_helper.rb
ee9341b3b65f9d567605249940e4948af119e784 04-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

configure rspec mocks

6b3c7e4142f5868d6ad67b43926905ffa851caec 04-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Create basic proof statuses for the tests.

daa05c1ca31894d2bcba80bea773829908efbef8 02-Dec-2014 Tim Reddehase <robustus@rightsrestricted.com>

Use 9200 as elastic-port on travis But on our local machines we'll use 9250 and the test-cluster.

01c5ee056bc14be94729a2346335aabfd41e881b 01-Dec-2014 Eileen Bolloff <ebolloff@fb3.uni-bremen.de>

Allow localhost http connections and fix port Fix port for testing elasticsearch.

7aa257096578ae891833367f3e2cc75ded9dbd36 01-Dec-2014 Eileen Bolloff <ebolloff@fb3.uni-bremen.de>

Allow localhost http connections for rspec.

a41053781a26a3dafdbbe8b740b48128cdacfb43 20-Oct-2014 Tim Reddehase <robustus@rightsrestricted.com>

allow to hets-stub specific ontology-version.

8855a26fb8a7c3743d2ae2cb817e21fb23b674c4 20-Oct-2014 Tim Reddehase <robustus@rightsrestricted.com>

use a specific hets-out path for the fixtures.

0404717d2bad53ac5922514e490a2b07361d58d8 20-Oct-2014 Tim Reddehase <robustus@rightsrestricted.com>

fix git mv spec for hets-api This includes a rather crude fix to allow the hets-api stubbing to occur for multiple files by checkinf for part of their filename. This should work, but we should take care when creating a test which needs this behaviour.

e850c5fd45bb26b64e3a1d02f8beb3a951470d27 20-Oct-2014 Tim Reddehase <robustus@rightsrestricted.com>

fix entity mapping spec for hets-api.

dc6831d0eb2d0ab3af7b0268a429562b110e07bb 20-Oct-2014 Tim Reddehase <robustus@rightsrestricted.com>

add new helpers for hets-handling Also fix the parse_this helper to use IO-objects instead of file-paths (and drop the pp.xml).

17e57f34169ca7ed023832806a77f0e0613074f1 20-Oct-2014 Tim Reddehase <robustus@rightsrestricted.com>

add missing webmock to rspec In order to mock web-requests we could/should use webmock instead of regular method-stubbing with rspec.

6b136443f2bc8ea49192210a7281ffa0f44b14fc 02-Sep-2014 Tim Reddehase <robustus@rightsrestricted.com>

fix redis-cleaning methods.

f2975ed21a8950e877d73bf4286ee9623181a1fe 21-Aug-2014 Tim Reddehase <robustus@rightsrestricted.com>

fix cleaning of redis during rspec runs.

658c5ac5444dac6fd0b33ea20690fa14103dbaeb 21-Aug-2014 Tim Reddehase <robustus@rightsrestricted.com>

improve handling of files and parsing in rspec.

a06b758dc863e147d288497ee69491afc2d23b7d 21-Aug-2014 Tim Reddehase <robustus@rightsrestricted.com>

avoid mocha deprecation warnings This also deactivates mocha entirely for rspec and uses rspec-mocks explicitly instead.

fd6a3bcee7d7a9d2261818557ce4760e1c13ced8 11-Aug-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

remove ontology file extensions stubs

0782f0889387f60a6bcf31f9f869c930466db1db 11-Aug-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

move db cleaner config to separate file

e5fc71a1941c833e676942534582f2adb510660d 07-Aug-2014 Tim Reddehase <robustus@rightsrestricted.com>

update usage of ontology-united with vars.

9fc3f7be4a26fede65a23f7d2e626d867f829db6 29-Jul-2014 Tim Reddehase <robustus@rightsrestricted.com>

mitigate some rspec deprecation warnings.

6876ece18854869a08606c12e0e814435fa73a29 12-Jul-2014 Tim Reddehase <robustus@rightsrestricted.com>

mitigate some rspec deprecation warnings.

56cef2d91f243b2b1f773acc20f9c5ae9fb5c537 02-Jul-2014 Tim Reddehase <robustus@rightsrestricted.com>

let specs use Hets::Evaluator.

61467f8ae537212ba3c895868c91235a21985cb8 28-Apr-2014 Tim Reddehase <robustus@rightsrestricted.com>

create tag for hets-testing The hets-testing tag sets Sidekiq test mode to inline (immediate execution). It shall also allow us to exclude rather slow hets tests on a test-run. 'Default' Sidekiq::Testing.inline! was removed, because it didn't work anyway (because of scoping).

cfd2c55efa79cd0073bdfc17e68ff1b05fab7255 28-Apr-2014 Tim Reddehase <robustus@rightsrestricted.com>

fix file-extensions stubbing through :each Stub file extensions on each spec run.

8bc65b8b85b830b0432ea7701f2047acd552cedc 25-Apr-2014 Tim Reddehase <robustus@rightsrestricted.com>

adjust spec helper for ontology testing dsl Add a more generalized helper method to get a version for a file (needed for ontology-united interaction). Include the Convenience module for ontology-united interaction.

fd556d3aae9e1b50625e815f5ff9141ddbfecae3 09-Apr-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

fix failing tests by stubbing ontology extensions

836ef862a9f5bd2a1d5c68bbccb11c00b248758a 03-Apr-2014 Tim Reddehase <robustus@rightsrestricted.com>

clean redis-db namespace before each spec.

b0d7a6127613b4d347e33a3e379c45edf1b4f26b 29-Mar-2014 Tim Reddehase <robustus@rightsrestricted.com>

add spec-helper method to parse a specific file.

6bbb03b1a673f7709df590df43aaed9e8740f671 29-Mar-2014 Tim Reddehase <robustus@rightsrestricted.com>

add spec-helper method to parse a specific file.

af7885666774df9091cb3c5c3d3ce4c232211451 29-Mar-2014 Tim Reddehase <robustus@rightsrestricted.com>

document sidekiq testing style in test-files.

654db5470b92509fa7d8e72d53b1b6eee1930d50 12-Feb-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

require sidekiq test helper

8020ba658ffa8f8c9a14ba3a7d2e9257ea400bec 11-Feb-2014 Tim Reddehase <robustus@rightsrestricted.com>

introduce gemset-specific simplecov filters This also includes a SharedHelper to share some settings between test_helper and spec_helper.

e3ae5c822699ae375f274bec0a24c1a0b36b731f 11-Feb-2014 Julian Kornberger <juliank@tzi.de>

SimpleCov added SimpleCov is a code coverage analysis tool that generates awesome reports after running our test suite.

3c4b1bd39fa36d241f2ef0d6f7ebbf2a9a6f4d36 09-Jan-2014 henning mueller <henning@orgizm.net>

Some improvements regarding to categories import.

789e293810190b918998fa027c76126e7aa4bf38 07-Dec-2013 henning mueller <henning@orgizm.net>

Save some chars with attr_writer in ActionController::TestRequest.

ef68dc9d6ba7fc331ecdef35f74cff6bb12835b8 07-Dec-2013 Tim Reddehase <robustus@rightsrestricted.com>

add missing query_string to TestRequest a valid request has a query_string method to extract the Query String. The standard TestRequest does not have such a method (although the controller relies on it), so this adds it.

d7341d330c5d19aef3ad9176971457f034f87ecd 29-Nov-2013 Tim Reddehase <robustus@rightsrestricted.com>

fix database cleaning method for rspec.

cfe6bf1bc38ab15b759dee8bb5c86c3727058a2e 29-Nov-2013 Tim Reddehase <robustus@rightsrestricted.com>

add database-cleaner to rspec.

e437b19c184243f688c2dd9b3bf083a454c804c7 02-Oct-2013 Julian Kornberger <juliank@tzi.de>

RSpec added Conflicts: Gemfile.lock