Sha256: 9ff8f6841e043bb2a17b0871ecc083d6a14e43a5276a8e2e61fd141b5a5b3178

Contents?: true

Size: 447 Bytes

Versions: 4

Compression:

Stored size: 447 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe Reddit::Session, "without logging in" do
  
  before(:each) do
    @reddit = Reddit::Session.new()
  end

  it "should grab the main page" do
    @reddit.main.should_not be_nil
  end
  
  it "should grab a user's profile page" do
    @reddit.user("radhruin").should_not be_nil
  end
  
  it "should grab a subreddit" do
    @reddit.subreddit("programming").should_not be_nil
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bterlson-reddit-0.1.0 spec/session_spec.rb
bterlson-reddit-0.2.0 spec/session_spec.rb
bterlson-reddit-0.2.1 spec/session_spec.rb
bterlson-reddit-0.3.0 spec/session_spec.rb