File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- /.build /.bundle /
2- /.build /.gems /
1+ .bundle
2+ .gems
3+ Gemfile.lock
Original file line number Diff line number Diff line change 11language : ruby
2- gemfile : .build/Gemfile
3- env :
4- - BUNDLE_GEMFILE=.build/Gemfile
5- script : ' bundle exec rake -f .build/Rakefile'
2+ script : bundle exec rake
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11Testing
22=======
33
4- Ruby build and tests exist in ` .build `_ to:
4+ Ruby build and tests exist to:
55
66- validate json graph schema as draft v4 of `JSON schema `_
77- validate examples against the json graph schema
@@ -13,11 +13,10 @@ How-to
1313
1414- Install `ruby `.
1515- Install `bundler ` with ``gem install bundler ``.
16- - Install testing dependencies with ``bundle install `` from ` .build `_ dir .
17- - Run:
16+ - Install testing dependencies with ``bundle install ``.
17+ - Run tests using rake :
1818
19- - From `.build `_: ``rake ``
20- - From project root: ``BUNDLE_GEMFILE=.build/Gemfile bundle exec rake -f .build/Rakefile ``
19+ - ``bundle exec rake ``
2120
2221.. _travis-ci :
2322
@@ -26,6 +25,5 @@ Travis-CI
2625
2726Automated testing with Travis-CI at `travis `_.
2827
29- .. _.build : https://github.com/jsongraph/json-graph-specification/tree/master/.build
3028.. _JSON schema : http://json-schema.org
3129.. _travis : https://travis-ci.org/jsongraph/json-graph-specification
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77class ExamplesTest < Minitest ::Unit ::TestCase
88
99 def setup
10- root = Pathname ( File . dirname ( File . expand_path __FILE__ ) ) + '..' + '..'
11- @schema = JSON . parse File . read ( root + 'json-graph-schema.json' )
10+ root = Pathname ( File . dirname ( File . expand_path __FILE__ ) ) + '..'
11+ @schema = JSON . parse File . read ( root + 'json-graph-schema.json' )
1212 @examples = Dir [ root + 'examples' + '*.json' ]
1313 end
1414
You can’t perform that action at this time.
0 commit comments