rmega 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rmega/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rmega
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,28 +1,30 @@
1
1
  require 'integration_spec_helper'
2
2
 
3
3
  describe 'Folders operations' do
4
- before :all do
5
- @session = storage.session
6
- @parent_node = @session.storage.root_node
7
- @folder_name = "test_folder_#{rand.denominator}_#{rand.denominator}"
8
- @folder_node = @session.storage.create_folder @parent_node, @folder_name
9
- end
4
+ if account_file_exists?
5
+ before :all do
6
+ @session = storage.session
7
+ @parent_node = @session.storage.root_node
8
+ @folder_name = "test_folder_#{rand.denominator}_#{rand.denominator}"
9
+ @folder_node = @session.storage.create_folder @parent_node, @folder_name
10
+ end
10
11
 
11
- it 'creates a new folder' do
12
- @folder_node.should be_kind_of Rmega::Node
13
- end
12
+ it 'creates a new folder' do
13
+ @folder_node.should be_kind_of Rmega::Node
14
+ end
14
15
 
15
- it 'finds the folder' do
16
- node = @session.storage.nodes.find { |n| n.name == @folder_name }
17
- node.should_not be_nil
18
- end
16
+ it 'finds the folder' do
17
+ node = @session.storage.nodes.find { |n| n.name == @folder_name }
18
+ node.should_not be_nil
19
+ end
19
20
 
20
- it 'deletes the folder' do
21
- lambda { @folder_node.delete }.should_not raise_error
22
- end
21
+ it 'deletes the folder' do
22
+ lambda { @folder_node.delete }.should_not raise_error
23
+ end
23
24
 
24
- it 'does not find the folder anymore' do
25
- node = @session.storage.nodes.find { |n| n.name == @folder_name }
26
- node.should be_nil
25
+ it 'does not find the folder anymore' do
26
+ node = @session.storage.nodes.find { |n| n.name == @folder_name }
27
+ node.should be_nil
28
+ end
27
29
  end
28
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmega
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: