Sha256: 85a0fa0e2fe75a77a06f177adc5f4641fa2a3935ad3df3e6d5e555e7fcb620a0

Contents?: true

Size: 731 Bytes

Versions: 24

Compression:

Stored size: 731 Bytes

Contents

require 'nicoquery/api/tag_search_rss'


describe "tag_search" do
  before do
    @instance = NicoQuery::Api::TagSearchRss.new  tag: 'ゆっくり実況プレイ',
                                                sort: :published_at,
                                                order: :asc,
                                                page: 1
  end

  describe "uri" do
    subject { @instance.uri }

    specify { expect(subject).to match /http:\/\/www\.nicovideo\.jp\/tag/ }

    specify { expect(subject).to match /(sort=(v|r|m|f|l)){0,}/ }
    specify { expect(subject).to match /(order=(a|d)){0,}/ }
    specify { expect(subject).to match /(page=\d){1,}/ }
    specify { expect(subject).to match /rss\=2\.0/ }
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
nicoquery-0.1.8.11 spec/api/tag_search_spec.rb
nicoquery-0.1.8.10 spec/api/tag_search_spec.rb
nicoquery-0.1.8.9 spec/api/tag_search_spec.rb
nicoquery-0.1.8.8 spec/api/tag_search_spec.rb
nicoquery-0.1.8.7 spec/api/tag_search_spec.rb
nicoquery-0.1.8.6 spec/api/tag_search_spec.rb
nicoquery-0.1.8.5 spec/api/tag_search_spec.rb
nicoquery-0.1.8.4 spec/api/tag_search_spec.rb
nicoquery-0.1.8.3 spec/api/tag_search_spec.rb
nicoquery-0.1.8.2 spec/api/tag_search_spec.rb
nicoquery-0.1.8 spec/api/tag_search_spec.rb
nicoquery-0.1.7 spec/api/tag_search_spec.rb
nicoquery-0.1.6.1 spec/api/tag_search_spec.rb
nicoquery-0.1.6 spec/api/tag_search_spec.rb
nicoquery-0.1.5 spec/api/tag_search_spec.rb
nicoquery-0.1.4 spec/api/tag_search_spec.rb
nicoquery-0.1.3 spec/api/tag_search_spec.rb
nicoquery-0.1.2 spec/api/tag_search_spec.rb
nicoquery-0.1.1 spec/api/tag_search_spec.rb
nicoquery-0.1.0 spec/api/tag_search_spec.rb