Sha256: ea9dcf6c50f125706cc417f61792960a271b80965d7c496335ba8eb19839fc30

Contents?: true

Size: 692 Bytes

Versions: 36

Compression:

Stored size: 692 Bytes

Contents

require 'spec_helper'

def struct(obj_in)
  OpenStruct.new(obj_in)
end

describe WoopleTheme::AnswerPresenter do
  obj = {
    index: nil,
    text: nil
  }

  subject { WoopleTheme::AnswerPresenter.new(struct(obj)) }

  describe "#correct_badge" do
    it "renders nothing" do
      subject.correct_badge.should be_nil
    end
  end

  describe "#incorrect_badge" do
    it "renders nothing" do
      subject.incorrect_badge.should be_nil
    end
  end

  describe "#radio_disabled" do
    it "renders nothing" do
      subject.radio_disabled.should be_nil
    end
  end

  describe "#radio_checked" do
    it "renders nothing" do
      subject.radio_checked.should be_nil
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
woople-theme-0.10.0 spec/presenters/answer_presenter_spec.rb
woople-theme-0.9.0 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.19 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.18 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.17 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.16 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.15 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.14 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.13 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.12 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.11 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.10 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.9 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.8 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.7 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.6 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.5 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.4 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.3 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.2 spec/presenters/answer_presenter_spec.rb