Sha256: 31bf1c112107bbce2608aa4b331a28f53f096f1758416090cb053a321072caea

Contents?: true

Size: 977 Bytes

Versions: 8

Compression:

Stored size: 977 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe Question do
  fixtures :questions
  VCR.use_cassette "enju_ndl/crd", :record => :new_episodes do

    it "test_should_get_crd_search", :vcr => true do
      result = Question.search_crd(:query_01 => 'Yahoo')
      result.should be_truthy
      result.total_count.should > 0
    end

    it "should respond to last_updated_at" do
      questions(:question_00001).last_updated_at
    end
  end
end

# == Schema Information
#
# Table name: questions
#
#  id            :integer          not null, primary key
#  user_id       :integer          not null
#  body          :text
#  shared        :boolean          default(TRUE), not null
#  answers_count :integer          default(0), not null
#  deleted_at    :datetime
#  state         :string(255)
#  solved        :boolean          default(FALSE), not null
#  note          :text
#  created_at    :datetime         not null
#  updated_at    :datetime         not null
#

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_question-0.2.0.beta.2 spec/models/question_spec.rb
enju_question-0.2.0.beta.1 spec/models/question_spec.rb
enju_question-0.1.1 spec/models/question_spec.rb
enju_question-0.1.0 spec/models/question_spec.rb
enju_question-0.1.0.pre15 spec/models/question_spec.rb
enju_question-0.1.0.pre14 spec/models/question_spec.rb
enju_question-0.1.0.pre13 spec/models/question_spec.rb
enju_question-0.1.0.pre12 spec/models/question_spec.rb