Sha256: 4fce3258fa78f5085661b0c48c7fc1781139fb8d74e4fe532f9775ab3da1c988

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

require 'spec_helper'

describe Rapidfire::Attempt do
  describe "Associations" do
    it { is_expected.to belong_to(:survey) }
    if Rails::VERSION::MAJOR >= 5
      it { is_expected.to belong_to(:user).optional }
    else
      it { is_expected.to belong_to(:user) }
    end
    it { is_expected.to have_many(:answers) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rapidfire-8.0.0 spec/models/rapidfire/attempt_spec.rb
rapidfire-5.0.0 spec/models/rapidfire/attempt_spec.rb