spec/models/file_spec.rb in lolita-file-upload-0.7.3 vs spec/models/file_spec.rb in lolita-file-upload-0.8.0

- old
+ new

@@ -17,18 +17,6 @@ file=Lolita::Upload::File.create(:asset=>File.open(Support.get_file("large_file.txt"))) file.asset.current_path.should match(/large_file\.txt$/) end end - context "configuration" do - it "should get from parent model lolita file tab" do - post=Factory.create(:post) - Post.lolita.tabs.clear # remove all tabs - file_tab=tab - file_tab.maxfilesize=5 - Post.lolita.tabs << file_tab - normal_file.fileable=post - normal_file.save - normal_file.errors[:asset].should == ["file too big (max #{5.0} bytes)"] - end - end end \ No newline at end of file