spec/build/name_spec.rb in build-1.0.10 vs spec/build/name_spec.rb in build-1.1

- old
+ new

@@ -18,33 +18,31 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. require 'build/name' -module Build::NameSpec - RSpec.describe Build::Name do - let(:name) {Build::Name.new('Foo Bar')} - it "retains the original text" do - expect(name.text).to be == 'Foo Bar' - end - - it "should generate useful identifiers" do - expect(name.identifier).to be == 'FooBar' - end - - it "should generate useful target names" do - expect(name.target).to be == 'foo-bar' - end - - it "should generate useful macro names" do - expect(name.macro).to be == 'FOO_BAR' - end - - it "should generate useful macro names" do - expect(name.macro).to be == 'FOO_BAR' - end - - it "can be constructed from target name" do - expect(Build::Name.from_target(name.target).text).to be == name.text - end +RSpec.describe Build::Name do + let(:name) {Build::Name.new('Foo Bar')} + it "retains the original text" do + expect(name.text).to be == 'Foo Bar' + end + + it "should generate useful identifiers" do + expect(name.identifier).to be == 'FooBar' + end + + it "should generate useful target names" do + expect(name.target).to be == 'foo-bar' + end + + it "should generate useful macro names" do + expect(name.macro).to be == 'FOO_BAR' + end + + it "should generate useful macro names" do + expect(name.macro).to be == 'FOO_BAR' + end + + it "can be constructed from target name" do + expect(Build::Name.from_target(name.target).text).to be == name.text end end