Sha256: a11f0b8135b9644e312eacd95e690177f0fcfe2403f886b6aa4bb19b8ec440f9

Contents?: true

Size: 561 Bytes

Versions: 2

Compression:

Stored size: 561 Bytes

Contents

require_relative 'spec_helper'

describe Engrade do

  it "should allow me to delete all my assignments" do
    Engrade.set_apikey ENV['ENG_API']

    VCR.use_cassette('login') { Engrade.login ENV['ENG_USER'], ENV['ENG_PASS'] }

    VCR.use_cassette('classes') { @classes = Engrade.classes }

    VCR.use_cassette('assignments') { @assignments = Engrade.assignments @classes }

    VCR.use_cassette('delete') { Engrade.delete @assignments }

    VCR.use_cassette('result') { @result = Engrade.assignments @classes }

    @result.should be_empty
  end

end
    

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
engrade-1.0.1 spec/integration_spec.rb
engrade-1.0.0 spec/integration_spec.rb