Sha256: 50273a7b3a146436166084a102793fa3b59b338f1c7c3d04d34f08ee59b870ab
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
require 'spec_helper' module Tasks describe Taskables::Taskable::Submission do class Answer # This is probably a bad idea, but otherwise Ruby will complain that there's # no 'has_one' method on my stub and I don't really care about that. class << self def method_missing *args; end end include Taskables::Taskable::Submission def question 'foo' end request is: :question end describe '.request' do it 'aliases a given relation to request' do expect(Answer.new.request).to eq 'foo' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | spec/models/tasks/taskables/taskable/submission_spec.rb |