spec/BtSync/bt_sync_spec.rb in BtSync-0.3.2 vs spec/BtSync/bt_sync_spec.rb in BtSync-0.4.0

- old
+ new

@@ -7,11 +7,11 @@ end end it "can view a folder list" do VCR.use_cassette("get-folders") do - @folder = @bt.get_folders.first + @folder = @bt.folders.first end @folder.name.should == "/home/chris/Documents" end it "can view settings" do VCR.use_cassette("get-settings") do @@ -35,19 +35,19 @@ it "can add and delete a folder" do VCR.use_cassette("add-folder") do @bt.add_folder '/home/chris/bt_test' end VCR.use_cassette("add-folder-list") do - folders = @bt.get_folders + folders = @bt.folders folders.count.should == 2 folder = folders.last folder.name.should == "/home/chris/bt_test" end VCR.use_cassette("remove-folder") do @bt.remove_folder '/home/chris/bt_test' end VCR.use_cassette("remove-folder-list") do - folders = @bt.get_folders + folders = @bt.folders folders.count.should == 1 folder = folders.last folder.name.should == "/home/chris/Documents" end end \ No newline at end of file