spec/getthumbinfo_spec.rb in nicoapi-0.0.1 vs spec/getthumbinfo_spec.rb in nicoapi-0.0.4.1
- old
+ new
@@ -1,14 +1,14 @@
-require './app/getthumbinfo'
+require 'NicoAPI/getthumbinfo'
describe "getthumbinfo" do
- describe "get" do
- before do
- @instance = NicoAPI::GetThumbInfo.new
- @instance.set video_id: 'sm9'
- end
+ before do
+ @instance = NicoAPI::GetThumbInfo.new
+ @instance.set 'sm9'
+ end
+ describe "uri" do
subject { @instance.uri }
specify {
expect(subject).to match /http:\/\/ext\.nicovideo\.jp\/api\/getthumbinfo\/(sm|nm)\d/
}
end