Codaisseur / code-assignments

0 stars 0 forks source link

Set up the data models #1

Open wearethefoos opened 7 years ago

wearethefoos commented 7 years ago

Example from the Runner:

docker-compose run ruby -c '''
class Foo
  def self.bar
    1
  end
end
''' -t rspec -f '''
describe Foo do
  describe ".bar" do
    it { expect(Foo.bar).to eq 1 }
  end
end
''' --format=json

Produces:

{
    "stdout": "<DESCRIBE::>Foo\n<DESCRIBE::>.bar\n<IT::>example at /tmp/ruby116917-1-17m65uw.walneo2yb9/solution.rb:11\n<PASSED::>Test Passed\n<COMPLETEDIN::>\n<COMPLETEDIN::>\n",
    "stderr": "",
    "exitCode": 0,
    "wallTime": 916,
    "stderrEscaped": true
}
wearethefoos commented 7 years ago

Check out the Runner Schema here https://github.com/Codaisseur/code-runner/blob/master/src/services/runner/runner-model.js

michfarr commented 7 years ago

Mongoid Docs Mongoid example app