Sha256: 87f8b1754f6a12c8471043ddf6ec47de059000c0fb843c638d6e20ee19c4cdc3

Contents?: true

Size: 800 Bytes

Versions: 15

Compression:

Stored size: 800 Bytes

Contents

require "nicoquery/object/tag_search"


describe "NicoQuery::Object::TagSearch" do
  before do
    @tag_search_result = NicoQuery::Object::TagSearch.new( tag: "ゆっくり実況プレイ",
                                                           sort: :published_at,
                                                           order: :asc,
                                                           page: 1 )
  end

  subject { @tag_search_result }

  describe "title" do
    it "returns string of title" do
      expect(subject.title).to eq "ゆっくり実況プレイ"
    end
  end

  describe "movies" do
    it "returns movie instances" do
      expect(subject.movies).to be_an_instance_of Array
      expect(subject.movies[0]).to be_an_instance_of NicoQuery::Object::Movie
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nicoquery-0.1.7 spec/object/tag_search_rss_spec.rb
nicoquery-0.1.6.1 spec/object/tag_search_rss_spec.rb
nicoquery-0.1.6 spec/object/tag_search_rss_spec.rb
nicoquery-0.1.5 spec/object/tag_search_rss_spec.rb
nicoquery-0.1.4 spec/object/tag_search_rss_spec.rb
nicoquery-0.1.3 spec/object/tag_search_rss_spec.rb
nicoquery-0.1.2 spec/object/tag_search_rss_spec.rb
nicoquery-0.1.1 spec/object/tag_search_rss_spec.rb
nicoquery-0.1.0 spec/object/tag_search_rss_spec.rb
nicoquery-0.0.3 spec/object/tag_search_rss_spec.rb
nicoquery-0.0.2.4 spec/object/tag_search_rss_spec.rb
nicoquery-0.0.2.3 spec/object/tag_search_rss_spec.rb
nicoquery-0.0.2.2 spec/object/tag_search_rss_spec.rb
nicoquery-0.0.2.1 spec/object/tag_search_rss_spec.rb
nicoquery-0.0.2 spec/object/tag_search_rss_spec.rb