Sha256: 6a8915bbfe388557342fde150c1a4fa0171fbb5d7caeb998d2200426e9f2ecda

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 Bytes

Contents

require 'nicoapi/core/tag_search'


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

  describe "uri" do
    subject { @instance.uri }
    specify {
      # host and path
      expect(subject).to match /http:\/\/www\.nicovideo\.jp\/tag/
      # uri parameter
      expect(subject).to match /(sort=(v|r|m|f|l)){0,}/
      expect(subject).to match /(order=(a|d)){0,}/
      expect(subject).to match /(page=\d){1,}/
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nicoapi-core-0.0.3.2 spec/tag_search_spec.rb
nicoapi-core-0.0.3.1 spec/tag_search_spec.rb
nicoapi-core-0.0.3 spec/tag_search_spec.rb
nicoapi-core-0.0.2 spec/tag_search_spec.rb