Sha256: 279f25ae7b16d244568ddf81e667b7fc6340f34b75954e3277a1e085c8c0649c
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' class WolframDatabinTest < Minitest::Test def setup @dbin=WolframDatabin::Base.new @dbin.set_shortid("4PZWVcDT") end def test_debug_flag assert !@dbin.debug_flag, "debug flag wrong" @dbin.debug assert @dbin.debug_flag, "debug flag wrong" end def test_shortid assert @dbin.shortid=="4PZWVcDT", "return id wrong #{@dbin.shortid}" end def test_creation assert @dbin!=nil, "should be created" end def test_datadrop_url assert @dbin.datadrop_url=="http://wolfr.am/4PZWVcDT", "should have short id #{@dbin.datadrop_url}" end def test_postdatabin time=Time.now query= {time: time } res=@dbin.post_data(query) puts "result is #{res}" assert res[:success], "response should be success #{res}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wolfram_databin-0.1.1 | test/test_wolfram.rb |