spec/wizards/profile_wizard_spec.rb in bebox-0.1.3 vs spec/wizards/profile_wizard_spec.rb in bebox-0.1.4

- old
+ new

@@ -17,9 +17,21 @@ Bebox::Profile.any_instance.stub(:create) { true } output = subject.create_new_profile(profile.project_root, profile.name, profile.path) expect(output).to eq(true) end + it 'not creates a new profile with invalid name' do + invalid_name = '0_profile' + output = subject.create_new_profile(profile.project_root, invalid_name, profile.path) + expect(output).to eq(nil) + end + + it 'not creates a new profile with invalid path' do + invalid_path = 'and/00' + output = subject.create_new_profile(profile.project_root, profile.name, invalid_path) + expect(output).to eq(nil) + end + it 'list profiles with wizard' do Bebox::Profile.stub(:list) {[]} output = subject.list_profiles(profile.project_root) expect(output).to eq([]) end \ No newline at end of file