Sha256: 70e8ea4b6411003451c21db7df4ebe34e8895ca4f181b91759e3956768067d4d

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 Bytes

Contents

require 'acts_as_saveable'
require 'spec_helper'

describe ActsAsSaveable::Helpers::Words do

  before :each do
    @saved = ActsAsSaveable::Save.new
  end

  it "should know that like is a true saved" do
    expect(@saved.saveable_words.that_mean_true).to include "like"
  end

  it "should know that bad is a false saved" do
    expect(@saved.saveable_words.that_mean_false).to include "bad"
  end

  it "should be a saved for true when word is good" do
    expect(@saved.saveable_words.meaning_of('good')).to be true
  end

  it "should be a saved for false when word is down" do
    expect(@saved.saveable_words.meaning_of('down')).to be false
  end

  it "should be a saved for true when the word is unknown" do
    expect(@saved.saveable_words.meaning_of('lsdhklkadhfs')).to be true
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_saveable-0.10.1 spec/words_spec.rb