Sha256: 648b286088988904b1e7669d80fbc4370d83c89c43d0cb41a2945935e21c4bf4
Contents?: true
Size: 622 Bytes
Versions: 10
Compression:
Stored size: 622 Bytes
Contents
require 'spec_helper' describe EditProperty do it 'edits property of the project' do result = stub(:result) metric_name = stub(:metric_name) value = stub(:value) author = stub(:author) project = stub(:project).tap { |p| p.should_receive(:edit_property).with(metric_name, value, author) { result } } subject.call(project, metric_name, value, author).should == result end it 'find project' do result = stub(:result) project_name = stub(:project_name) Project.should_receive(:find_by).with(name: project_name) { result } subject.project(project_name).should == result end end
Version data entries
10 entries across 10 versions & 1 rubygems