Sha256: ec94c9572c7f10f9bf8da23fe739386bec9fc8ad120bf89c11aa2ab5e72cc6c9

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

require 'nicoquery/api/tag_search_rss'


describe "tag_search" do
  before do
    @instance = NicoQuery::Api::TagSearch.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

1 entries across 1 versions & 1 rubygems

Version Path
nicoquery-0.0.2.1 spec/api/tag_search_spec.rb